PrepAway - Latest Free Exam Questions & Answers

Which of the following best describes the main use of polymorphism in object oriented programming?

Which of the following best describes the main use of polymorphism in object oriented programming?

PrepAway - Latest Free Exam Questions & Answers

A.
Ability of objects belonging to different types to respond to method, field, or property calls of the same name, each one according to an appropriate type-specific behavior.

B.
Ability of classes belonging to different types to respond to method, field, or property calls of the same name, each one according to an appropriate type-specific behavior.

C.
Ability of objects belonging to different types to respond to method, field, or property calls of different names, each one according to an appropriate type-specific behavior.

D.
Ability of classes belonging to different types to respond to method, field, or property calls of different names, each one according to an appropriate type-specific behavior.

Explanation:
The primary usage of polymorphism in industry is the ability of objects belonging to different types to respond to method, field, or property calls of the same name, each one according to an appropriate type-specific behavior. It is when different objects respond to the same command, input, or message in different ways.


Leave a Reply