What are Virtual Functions?
Virtual Functions are the basis of Polymorphism – they provide the mechanics of late binding. A class, which has at least one function declared as Virtual has a V-Table associated with it. V-Table maintains pointers of all the Virtual functions of that class.All objects of that class point to the same V-Table. Whenever there is a call made to a function which is virtual, the pointer to that function is obtained during runtime from the V-Table. Hence there is dynamic binding or late binding that leads to the function of the derived class getting called.
C++ FAQ Home
Sponsored links
Software Localization Tool Sisulizer
Localize DotNet, C++ Builder, Delphi, C/C++, Visual Basic & Java apps & html help. Try Sisulizer now
Localize DotNet, C++ Builder, Delphi, C/C++, Visual Basic & Java apps & html help. Try Sisulizer now
CSTSOFT Instrumentation .NET & ActiveX Components
A collection of 13 instrumentation .NET/ActiveX/VCL components including Gauge,Knob,LED,Trend etc.
A collection of 13 instrumentation .NET/ActiveX/VCL components including Gauge,Knob,LED,Trend etc.
Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.
DVD/CD Duplicators - All Free Shipping
Simple Disc-to-Disc Duplication. 2 Year Warranty & Free Shipping.
Simple Disc-to-Disc Duplication. 2 Year Warranty & Free Shipping.
-software
-software, Try 4 Different Flavors Today, Pay Only Shipping Fee.
-software, Try 4 Different Flavors Today, Pay Only Shipping Fee.
