OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024

OOPS

Question 181
_________ allows to create classes which are derived from other classes, so that they automatically include some of its “parent’s” members, plus its own members.
A
Overloading
B
Inheritance
C
Polymorphism
D
Encapsulation
Question 181 Explanation: 
→ Inheritance allows to create classes which are derived from other classes, so that they automatically include some of its “parent’s” members, plus its own members.
→ The main advantage of inheritance is “reusability”.
Correct Answer: B
Question 181 Explanation: 
→ Inheritance allows to create classes which are derived from other classes, so that they automatically include some of its “parent’s” members, plus its own members.
→ The main advantage of inheritance is “reusability”.

Leave a Reply

Your email address will not be published. Required fields are marked *