Everything from the base class is
inherited to derived class. members
marked private are not accessible to
derived classes for integrity purpose,
should you need to make them
accessible in derived class, mark the
members as protected.
There are various levels of members' accessibility in context of inheritance.
public
: all public members of the base-class are accessible within the derived-class and to the instances of derived-class.
protected
: all protected members of the base-class are accessible within the derived-class and not to the instances of derived-class.
protected internal
: all protected internal members of the base-class are accessible within the derived-class and to the instances of derived-class created within the same assembly.
internal
: all internal members of the base-class are accessible within the derived-class and to the instances of derived-class within the same assembly.
private
: no private members of the base-class are accessible within the derived-class and to the instances of derived-class.