Verification Guild
A Community of Verification Professionals

 Create an AccountHome | Calendar | Downloads | FAQ | Links | Site Admin | Your Account  

Login
Nickname

Password

Security Code: Security Code
Type Security Code
BACKWARD

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Modules
· Home
· Downloads
· FAQ
· Feedback
· Recommend Us
· Web Links
· Your Account

Advertising

Who's Online
There are currently, 61 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

  
Verification Guild: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile  ProfileDigest    Log inLog in 

Question: Advantage Of Virtual Functions

 
Post new topic   Reply to topic    Verification Guild Forum Index -> Main
View previous topic :: View next topic  
Author Message
spartanthewarrior
Senior
Senior


Joined: Aug 15, 2009
Posts: 32

PostPosted: Sat Mar 17, 2012 1:20 pm    Post subject: Question: Advantage Of Virtual Functions Reply with quote

Hi all,

What is the advantage we have from (Virtual Functions). Some of the advantages I know, is

1) We can override functionality in (Derived or Child) class.

2) Using base class object we can access, derived class functions.
Back to top
View user's profile
pavanshanbhag
Senior
Senior


Joined: Mar 25, 2009
Posts: 380
Location: Bangalore, India

PostPosted: Tue Apr 03, 2012 5:26 am    Post subject: Reply with quote

The main advantage of virtual function is that they support runtime polymorphism and other greatest advantage is that they can create pure virtual functions .
_________________
-Pavan K Shanbhag

“The difference between genius and stupidity, genius knows his limits.” - Albert Einstein
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Verification Guild Forum Index -> Main All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Verification Guild © 2006 Janick Bergeron
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.183 Seconds