Page 1 of 1

Student inherits Person. Student has a public method getGPA(). Person does not have a getGPA() method. What access does

Posted: Sun May 15, 2022 12:33 pm
by answerhappygod
Student Inherits Person Student Has A Public Method Getgpa Person Does Not Have A Getgpa Method What Access Does 1
Student Inherits Person Student Has A Public Method Getgpa Person Does Not Have A Getgpa Method What Access Does 1 (84.13 KiB) Viewed 79 times
Student inherits Person. Student has a public method getGPA(). Person does not have a getGPA() method. What access does Person have to the getGPA() method that is in Student? (Select all that apply) getGPA() is public, thus Person has direct access only if it specifies it by saying Person.getGPA(). Even though getGPA() is public, Person has NO access because Student inherits Person, but Person does not inherit Student. getGPA() is public, thus Person has direct access Student objects or methods in the Student class can call the getGPA() method directly