answersLogoWhite

0

Polymorphism in VC++ is the same as polymorphism in C++ itself. When you implicitly call a virtual method of a base class or one of its derivatives, then you rightly expect the most-derived override to execute instead, even when the runtime type is completely unknown to the caller and cannot be determined at runtime let alone compile time. You get that for free simply by overriding the known virtual methods of the base class, and without any need for expensive runtime type information, which is only useful if the caller is actually aware of the type in the first place, and which can only be predicted on a closed system. The whole point of polymorphism is that the base class (and therefore the caller) need know nothing whatsoever about any of its derivatives in order to execute more specialised methods. VC++ fully supports this aspect of OOP.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

1 Do polymorphism and mutation explain the same biological phenomenon?

no polymorphism and mutation are different.polymorphism represents overall change in an organism whereas mutation may or may not bring overall change.


What is the difference between describe and explain?

Describe is what it is and explain is why it is as it is


What is difference between explain and describe?

Describe is what it is and explain is why it is as it is


Explain listing process with suitable example and Diagram?

1 Explain listing process with suitable example & Diagram


What is the describe and explain child's right in Cambodia?

describe and explain child's right?


Explain what is meant by the fetch-execute cycle and describe its action in RLT?

Explain what is meant by the fetch-execute cycle and describe its action in RLT?" Explain what is meant by the fetch-execute cycle and describe its action in RLT?"


Explain earth 's position in the solar system and describe its neighbors?

explain earth's position in the solar system and describe its closest neighbors.


What is an noun for the word describe?

A synonym for describe is 'explain'.


What is Polymorphism and inheritance explain with example?

Polymorphism, is an object-oriented programming concept, which relates to the ability to create a variable, function or an object that has more than one form. This allows the object to invoke the correct instance of the variable, function or other object based upon the object type. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object. Here are some links to examples: C++: http://www.cplusplus.com/forum/beginner/10884/ c#: http://msdn.microsoft.com/en-us/library/ms173152.aspx Python: http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming Java: http://www.tutorialspoint.com/java/java_polymorphism.htm


What is a word another word for describe?

explain


Describe the meaning of utility in economics and explain why it is different from on consumer to another?

Describe the meaning of utility in economics and explain why it is different from one consumer to another.


How do you write an egpty?

You would first have to explain what an egpty is, and then probably describe it. Then explain why you are writing about it.