Database - Object-Oriented Data Modeling - Discussion

Discussion :: Object-Oriented Data Modeling - General Questions (Q.No.1)

1. 

The fact that the same operation may apply to two or more classes is called what?

[A]. Inheritance
[B]. Polymorphism
[C]. Encapsulation
[D]. Multiple classification

Answer: Option B

Explanation:

No answer description available for this question.

Abhilasha said: (Feb 27, 2011)  
Polymorphism is the property of an object, i.e. an object can behave differently in different Classes.

Shamim said: (Aug 28, 2011)  
Polymorphism is the property of an object, i.e. an object can behaviour is same different Classes.

Prashant said: (Apr 21, 2012)  
The point here is not related to an object but related to an operation, which in programming terminology is pointing to a method. A parent and child class both can have the same method but depending on the class that has invoked the method, the functionality of the method would be defined accordingly .

Prashant said: (Apr 21, 2012)  
The above mentioned point is a reference to function overriding which is a form of polymorphism. Hence in this case the answer is polymorphism

Megha said: (Aug 1, 2014)  
Poly means many and morphism means forms. Same operation in many forms called polymorphism.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.