![]() |
|
#1
|
|||
|
|||
pure virtual functionhi all,
i know about how to declare pure virtual function.its declaration is virtual return type function-name()=0; what does =0 means here? can anybody give a satisfactory answer for this. |
|
#2
|
||||
|
||||
Re: pure virtual functionConsider a pointer declaration.
CPP / C++ / C Code:
What does this mean? The pointer p is NULL or 0. This is exactly similar to pure virtual functions. It is null. You have to define it in the inherited classes. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| 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 | C++ Forum | 4 | 26-May-2006 14:58 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| [Tutorial] Function Pointers | aaroncohn | C++ Forum | 4 | 17-Feb-2006 11:33 |
| Why static member function cannot be virtual in C++ | Poolan | C++ Forum | 1 | 20-Nov-2004 09:51 |
| 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