What is meant by Inheritance?

devquora
devquora

Posted On: Feb 22, 2018

 

Inheritance is the ability of a class to inherit the characteristics and properties of another class. This is one of the most significant features of the object-oriented programming language. There are mainly three modes of inheritance public, protected and private and two types of classes: subclass(the one which inherits) and the base or the superclass(from which inheritance is done). And there are five ways in which inheritance can be done.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Data Structure Interview Questions

    What is meant by Object Oriented Programming – OOP?

    Object-oriented programming (OOP) is a computer programming technique that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field ...

    Data Structure Interview Questions

    What is meant by Structural Programming?

    Structured Programming can be defined as a programming Approach in which the program is made as a single structure. Lines or blocks of codes are written and executed in a sequential manner such as one...

    Data Structure Interview Questions

    What is meant by Class?

    A class is the most important part of object-oriented programming which is used for the purpose of creating objects. It is defined as the template of similar types of objects consists of a declaration...