![]() |
|
#1
|
|||
|
|||
Help in Virtual functionHi All,
I am familiar with virtual functions but i am not able to identify under which circumstances virtual functions should be used. So does anybody provide a two type of source code, one without using virtual functions and another with using virtual functions of same functionalaties? This will help to understand under which circumstances virtual functions can be applied. Best Regards, Janakiraman |
|
#2
|
|||
|
|||
Re: Help in Virtual functionCPP / C++ / C Code:
output: 2 Without using virtual function the output will be 1 |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What does =0 in Pure virtual function means? | Poolan | CPP / C++ Forum | 4 | 26-May-2006 14:58 |
| pure virtual function | vatsa_mitr | CPP / C++ Forum | 1 | 12-May-2006 00:41 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| [Tutorial] Function Pointers | aaroncohn | CPP / C++ Forum | 4 | 17-Feb-2006 11:33 |
| Revising Script style ?????? | pepee | MySQL / PHP Forum | 4 | 14-Apr-2004 04:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The