GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-May-2006, 00:14
vatsa_mitr vatsa_mitr is offline
New Member
 
Join Date: Apr 2006
Posts: 8
vatsa_mitr is on a distinguished road
Smile

pure virtual function


hi 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  
Old 12-May-2006, 00:41
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 927
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: pure virtual function


Consider a pointer declaration.

CPP / C++ / C Code:
int *p = 0;

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 GIDBlogDeveloping GUIs with wxPython (Part 4) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 17:26.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.