Total members 10249 | Gratitudes |It is currently Thu May 17, 2012 8:41 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: What are Virtual Functions?
PostPosted: Wed Jul 04, 2007 12:32 am 
Offline
Beginner
User avatar

Joined: Wed Mar 28, 2007 1:17 pm
Posts: 118
Location: Cairo-Egypt
Has thanked: 0 time
Have thanks: 5 time

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.

Thanks alot


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

 Similar topics
 Functions
 softwares of virtual reality
 Virtual Reality Applications
 Virtual Reality System
 KnowledgeNet - Cisco Secure Virtual private networks
 Cisco press - Troubleshooting Virtual Private Networks
 Cisco press - IPsec Virtual Private Network Fundamentals - J
 Cisco Press - The Case for Virtual Business Processes
 Cisco Press IPsec Virtual Private Network Fundamentals Jul 2
 Functions and References

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team