A class can be declared as __________ if it should not be sub classed.Select one:a.finalb.privatec.publicd.protected
Question
A class can be declared as __________ if it should not be sub classed.Select one:a.finalb.privatec.publicd.protected
Solution
A class can be declared as "final" if it should not be subclassed. So, the correct answer is a. final.
Similar Questions
Which access modifier allows member access only within the same class and its subclasses?a.publicb.protectedc.defaultd.private
___ and _____ are the access specifiers that can be applied to top level Class.Select one or more:a.protectedb.publicc.virtuald.default
Which access specifier is usually used for data members of a class?a) Protectedb) Privatec) Publicd) Default
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
Which of the following access specifies is used in a class definition by default?a.Friendb.Privatec.Protectedd.Public
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.