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?
  1. static
  2. protected
  3. private
  4. shared
  5. public
1, 3
2, 5
3, 4
4, 5
Answer: Option
Explanation:
No answer description is available. Let's discuss.
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:

Your comments will be displayed after verification.