Vidyalelo
Python · Q3

Advanced OOP Concepts

Programming · Python · question 3

Q3

What is inheritance in OOP?

A.
Creating new objects from existing ones
B.
Allowing objects to share attributes and methods
Answer
C.
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.