Inheritance – Part 2 | C#.NET Tutorial | Mr. Bangar Raju
Inheritance in C#.Net
– Parent class constructor must be accessible to child class or else inheritance will not be possible.
– In inheritance child classes can access parent classes members but a parent class can never access its child class members.
– We can initialize a parent class variable by using it’s child classes instance to make is as a reference and that reference with that reference we can’t call any
Types of inheritance: Number of parent classes a child class have or the number of child classes a parent class have
For more updates on courses and tips follow us on: