Question
a.
Any function of class A
b.
The add() function of class A
c.
Any member of class A
d.
Private, protected and public members of class A
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. If class A has add() function with protected access, and few other members in public . Then class B inherits class A privately. Will the user will not be able to call _________...
Similar Questions
Discover Related MCQs
Q. Which access specifier should be used in a class where the instances can’t be created?
View solution
Q. On which specifier’s data, does the size of a class’s object depend?
View solution
Q. If class B inherits class A privately. And class B has a friend function. Will the friend function be able to access the private member of class A?
View solution
Q. If an abstract class has all the private members, then _________
View solution
Q. Which access specifier should be used so that all the parent class members can be inherited and accessed from outside the class?
View solution
Q. Which access specifier is usually used for data members of a class?
View solution
Q. Which specifier should be used for member functions of a class?
View solution
Q. If a function has to be called only by using other member functions of the class, what should be the access specifier used for that function?
View solution
Q. Which among the following is correct to call a private member from outside the class?
View solution
Q. If private members has to be accessed directly from outside the class but the access specifier must not be changed, what should be done?
View solution
Q. Which access specifier is/are most secure during inheritance?
View solution
Q. Private member functions can be overloaded.
View solution
Q. Which among the following best describes the protected specifier?
View solution
Q. If a constructor is defined in protected access, then.
View solution
Q. If the protected members are to be made accessible only to the nearest subclass and no further subclasses, which access specifier should be used in inheritance?
View solution
Q. Protected members differ from default members as_______
View solution
Q. If all the members are defined in protected specifier then ( Constructors not considered ):
View solution
Q. If protected inheritance is used then _____
View solution
Q. If protected members are to be accessed from outside the class then__________
View solution
Q. Which among the following can use protected access specifier?
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!