adplus-dvertising
frame-decoration

Question

Which data members can be inherited but are private to a class?

a.

Private

b.

Protected

c.

Protected and Static

d.

Privately inherited

Answer: (b).Protected

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which data members can be inherited but are private to a class?

Similar Questions

Discover Related MCQs

Q. The arguments passed to member functions by reference are considered as data members of class.

Q. Which among the following is not allowed for data member declaration?

Q. Which among the following best describes member functions?

Q. How many types of member functions are generally there in C++?

Q. How can a static member function be called in main function?

Q. What are inline member functions?

Q. What happens if non static members are used in static member function?

Q. Static member functions _____________

Q. How to access members of the class inside a member function?

Q. For overloading “( )”, “[ ]” or “->” operators, a class __________

Q. If a virtual member function is defined, ___________

Q. Member functions of a generic class are _____________

Q. Member function of a class can ____________

Q. A member function can _______________ of the same class

Q. Which member function doesn’t require any return type?

Q. Which among the following is not possible for member function?

Q. What are local classes?

Q. All member functions of a local class must be ___________

Q. Can local class members access/use the general local variables (except static, abstract etc.) of the function in which it is defined?

Q. Which type of data can a local class access from the function in which it is defined?