Q3
What is inheritance in OOP?
A.
Creating new objects from existing ones
B.
Allowing objects to share attributes and methods
AnswerC.
Restricting access to object attributes
D.
Converting classes into objects
Answer: Option B
Solution
Answer: Option B
Solution:
Inheritance allows objects to inherit attributes and methods from a parent class.