C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 39)
39.
Which of the following are available only in the class hierarchy chain?
Public data members
Private data members
Protected data members
Member functions
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
13 comments Page 2 of 2.

Poonam said:   1 decade ago
@Saksham if public members can be accessed it means it is available.

Siya said:   10 years ago
I am confused. Public members can also be available in hierarchy chain. If they are inherited publicly, privately, protected.

Muhil said:   6 years ago
The classes form a class hierarchy, or inheritance tree, which can be as deep as needed. The hierarchy of classes in Java has one root class, called Object, which is a superclass of any class. Instance variable and methods are inherited down through the levels.


Post your comments here:

Your comments will be displayed after verification.