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?
Discussion:
13 comments Page 2 of 2.
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.
RengaraJ said:
5 years ago
Public members available in BOTH hierarchy chain and also main.
But protected members are ONLY available in hierarchy chain.
But protected members are ONLY available in hierarchy chain.
(3)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers