Answer Posted / swathi
It is a feature that allows one interface to be used for
general class of actions. The specific action is determined
by the exact nature of the situation. In general
polymorphism means "one interface, multiple methods", This
means that it is possible to design a generic interface to
a group of related activities. This helps reduce complexity
by allowing the same interface to be used to specify a
general class of action. It is the compiler's job to select
the specific action (that is, method) as it applies to each
situation
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is class encapsulation?
What is abstract class in oops?
What is abstraction example?
What is difference between data abstraction and encapsulation?
What is polymorphism and its types?
Why we use classes in oop?
What is ambiguity in inheritance?
What is the example of polymorphism?
any one please tell me the purpose of operator overloading
Why polymorphism is used in oops?
What are the 4 pillars of oop?
What is new keyword in oops?
What is an example of genetic polymorphism?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is abstraction in oop with example?