Feature of object oriented paradigm helps code reuse is Inheritance - Objects Design

Q.  The feature of the object oriented paradigm which helps code reuse is _______ .
- Published on 24 Jul 15

a. Object
b. Class
c. Inheritance
d. Aggregation.

ANSWER: Inheritance
 

    Discussion

  • Adem   -Posted on 18 Apr 18
    good mcq
  • Nirja Shah   -Posted on 15 Oct 15
    - The inheritance feature allows us to define a new class by extending or modifying an existing class.

    - The original class is called the base class (or super class) and the new class obtained through inheritance is called as the derived class (or sub class).

    - Inheritance feature of the object oriented paradigm helps in code reuse.

    - A base class is a generalization of its derived classes.

    - This means that the base class contains only those properties that are common to all the derived classes.

    - Again each derived class is a specialization of its base class because it modifies or extends the basic properties of the base class in certain ways.

    - Thus, the inheritance relationship can be viewed as a generalization-specialization relationship .

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)