Dynamic Polymorphism Defined

 < 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 > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net