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.