Knowee
Questions
Features
Study Tools

Restrictive Access ModifierCan you override a method declared as public in a superclass and declare it private in a subclass?YesNo

Question

Restrictive Access ModifierCan you override a method declared as public in a superclass and declare it private in a subclass?YesNo

🧐 Not the exact question you are looking for?Go ask a question

Solution

No

Similar Questions

Which access modifier allows member access only within the same class and its subclasses?a.publicb.protectedc.defaultd.private

A superclass' members are accessible anywhere that the program has a reference to an object of that superclass or to an object of one of its subclasses if the members have what access modifier?a.publicb.privatec.protected

Given a method in a protected class, access modifier must be used to restrict access to that method to only the other members of the same class.

In Java, a subclass can directly access the private members of its superclass.Select one:TrueFalse

Which modifier makes a member accessible only within its own class?a.defaultb.protectedc.privated.publicClear my choice

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.