Miky alton
What is Inheritance?
By Miky alton in C# on May 13 2012
  • Anil Kumar
    Sep, 2019 19

    Inheritance is one of the principle of OOP’s, Inheritance is defined as maintaining the parent - child relationship between the base class and derived class, and to make derived class to use all the methods and properties of parent class.

    Class A
    {
    //Methods
    //Properties
    }
    Class B:A
    {
    //Can Inherit the properties of Class A
    }

    To Prevent Inheritance we can make the class name as sealed class.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS