OOPs Concepts
Programming and Technical
Inheritance is the process by which
-Object of one class acquires the properties of objects of another class
-Variable of one class acquires the properties of variable of another class
-Object of one class acquires the properties of objects of same class
-Variable of one class acquires the properties of objects of another class
Read Solution (Total 4)
-
- Object of one class acquires the properties of objects of another class
- 11 years agoHelpfull: Yes(1) No(2)
- Object of one class acquires the properties of objects of another class
- 8 years agoHelpfull: Yes(1) No(0)
- Inheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object.
- 7 years agoHelpfull: Yes(1) No(0)
- A class that is derived from another class is called subclass and inherits all fields and methods of its superclass. In Java, only single inheritance is allowed and thus, every class can have at most one direct superclass. A class can be derived from another class that is derived from another class and so on
- 9 years agoHelpfull: Yes(0) No(1)
OOPs Concepts Other Question