| < Day Day Up > |
|
Dynamic polymorphism combines dynamic binding with polymorphic classes to enable the creation of object- oriented programs in C++. Binding is the association of a symbol name to a storage address. A statically bound name is assigned a storage location at compile time. With dynamic binding the association of a name to a storage location is deferred until the first call to that name is made. With polymorphic classes, a virtual function call can result in the execution of a derived class's overriding function. The derived class object itself can be created at runtime using the new operator and its address assigned to a base class pointer.
| < Day Day Up > |
|