4.1 Summary
- Inheritance from a base class to a derived class uses the
:keyword in C#. - The attributes of the base class get the visibility modifier
protected(only visible to derived classes). - Derived classes access attributes and methods of the base class via the
basekeyword. - Derived classes can override methods of the base class.
- The
ToString()method is used to describe the relevant information of an object in the class.