Which of the following best describes polymorphism?

Which of the following best describes polymorphism in python? mcq and its answer is provided on this page.

Polymorphism is the ability of an object to many forms.

Polymorphism is often used with function so that function can be used with many types of parameters.

Which of the following best describes polymorphism in python?

Que. Which of the following best describes polymorphism?
a. a) Ability of a class to derive members of another class as a part of its own definition
b. b) Focuses on variables and passing of variables to functions
c. c) Means of bundling instance variables and methods in order to restrict access to certain class members
d. d) Allows for objects of different types and behaviour to be treated as the same general type
Answer : d
Explanation : Polymorphism is a feature of object-oriented programming languages. It allows for the implementation of elegant software that is well designed and easily modified.


Comments