C# Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 9)
9.
In an inheritance chain which of the following members of base class are accessible to the derived class members?
- static
- protected
- private
- shared
- public
Discussion:
2 comments Page 1 of 1.
Satya krishna said:
1 decade ago
Both static(C#) and shared( VB.Net) are same. Private doesn't allow to inherits. So answer is Public and protected.
Kazeem said:
1 decade ago
All the members of class (Except Static) gets inherited in Derived Class. But only Public and Protected are Accessible.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers