| Login | | 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. | |
| 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 |
|
| View previous topic :: View next topic |
| Author |
Message |
spartanthewarrior Senior


Joined: Aug 15, 2009 Posts: 32
|
Posted: Sat Mar 17, 2012 1:20 pm Post subject: Question: Advantage Of Virtual Functions |
|
|
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 |
|
 |
pavanshanbhag Senior


Joined: Mar 25, 2009 Posts: 380 Location: Bangalore, India
|
Posted: Tue Apr 03, 2012 5:26 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
| |
|
|