Advertisements
Advertisements
प्रश्न
Name the feature of java depicted in the above picture.

पर्याय
Encapsulation
Inheritance
Abstraction
Abstraction
MCQ
Advertisements
उत्तर
Inheritance
Explanation:
The image displays a “father” and a “child” relationship. In object-oriented programming, inheritance is the mechanism where a child class (subclass) acquires or inherits the properties and behaviors of a parent class (superclass), perfectly mirroring biological inheritance.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 2: Class as the Basis of all Computation - Exercises [पृष्ठ ६४]
