Q4: In Object-Oriented programming, new classes can be defined by extending cha
example of:
a) Encapsulation
b) Interface
c) Composition
d) Inheritance
e) Aggregation
Answers
Answered by
0
Answer:
Option D
Explanation:
please do follow me
Attachments:
Answered by
2
In Object-Oriented programming, new classes can be defined by extending existing example of inheritance.
Explanation:
- Inheritance is a mechanism that allows one class to inherit all the behaviour (methods ) and attributes (example variables) of any other magnificence.
- A class that inherits from any other class is known as a subclass and the class that offers the inheritance is known as a superclass.
Answer (d) Inheritance is the correct option.
Similar questions