ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The process by which one object can acquire the properties of another object?
|
Encapsulation
|
|
Inheritance
|
|
Polymorphisim
|
|
Abstraction
|
Explanation:
Detailed explanation-1: -Inheritance is when an object acquires the property of another object. Inheritance allows a class (subclass) to acquire the properties and behavior of another class (super-class). It helps to reuse, customize and enhance the existing code.
Detailed explanation-2: -Object of one class acquire property of object another class, this process is known as Inheritance. The mechanism of deriving a class from another class is known as Inheritance. Explanation.
Detailed explanation-3: -Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object.
There is 1 question to complete.