Skip to content

4.1 Summary

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