Answer Posted / vivek
Ploymorphism is the concept of OOP's. It allows you invoke
derived class methods through base class reference during
runtime.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How do you achieve runtime polymorphism?
What are the advantages of polymorphism?
What are the important components of cohesion?
What is object in oops?
Why is oop better than procedural?
Give two or more real cenario of virtual function and vertual object
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 the diamond problem in inheritance?
Why multiple inheritance is not allowed?
What is class and object in oops?
What is the real life example of polymorphism?
Why is destructor used?
Why is static class not inherited?
What is oops and why we use oops?
What is a null tree?