Examveda

How is polymorphism achieved in Python?

A. By using only class inheritance

B. By using only class composition

C. By using both class inheritance and composition

D. By using multiple inheritance only

Answer: Option C

Solution (By Examveda Team)

Polymorphism is achieved in Python through both class inheritance and composition.

This Question Belongs to Python Program >> Advanced OOP Concepts

Join The Discussion

Related Questions on Advanced OOP Concepts

What is inheritance in OOP?

A. Creating new objects from existing ones

B. Allowing objects to share attributes and methods

C. Restricting access to object attributes

D. Converting classes into objects