1.Inheritance It is the mechanism of derivingnew class from existing class.It provides the idea of reusability. A B Base , super,parent class derived , sub, child class2.…