- In C# we can only inherit from only one parent class (If the parent object is deleted the child object can still exist)
- The
Object Class
is the parent class of all classes in C# and is automatically inherited
- Inheritance establishes an “Is-A” type of relation between Classes
Accessing Base Class Constructor/ Methods
- Base class Constructors are always executed first. Base class constructors are not inherited by the child class
- To pass values to the constructor of the base class we make use of the
base()
function
- The methods of the Base class can be accessed using
base.MethodName()