Inheritance (Derived and Base Class)
In C#, it is possible to inherit fields and methods from one class to another. We group the “inheritance concept” into two categories:
- Derived Class (child) – the class that inherits from another class
- Base Class (parent) – the class being inherited from
To inherit from a class, use the :
symbol.
In the example below, the Car
class (child) inherits the fields and methods from the Vehicle
class (parent): Continue reading C# Inheritance