Question
a.
Access protected members of parent class
b.
Definition without return type
c.
Access public members of subclass
d.
Access static members of class
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which among the following is not possible for member function?
Similar Questions
Discover Related MCQs
Q. What are local classes?
View solution
Q. All member functions of a local class must be ___________
View solution
Q. Can local class members access/use the general local variables (except static, abstract etc.) of the function in which it is defined?
View solution
Q. Which type of data can a local class access from the function in which it is defined?
View solution
Q. Local classes can access the type names and enumerators defined by the enclosing function.
View solution
Q. Can static variables be declared inside a local class?
View solution
Q. All the member functions of local classes are __________ by default.
View solution
Q. The enclosing function has no special access to the members of local class. (True/False)
View solution
Q. Which language can use inheritance with local classes?
View solution
Q. How many local classes can be defined inside a single function?
View solution
Q. All the data members of local class must be ___________
View solution
Q. Can two different functions have local class with same name?
View solution
Q. What is the scope of local class?
View solution
Q. Can a function, other than the enclosing function of local class, access the class members?
View solution
Q. Which among the following is main advantage of using local classes?
View solution
Q. Which among the following best describes a nested class?
View solution
Q. Which feature of OOP reduces the use of nested classes?
View solution
Q. How many categories are nested classes divided into?
View solution
Q. Non-static nested classes have access to _____________ from enclosing class.
View solution
Q. Static nested classes doesn’t have access to _________________ from enclosing class.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Operating System
Dive deep into the core of computers with our Operating System MCQs. Learn about...
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...