|
-
May 4th, 2010, 11:06 AM
#1
General C++ question about const
Hi,
I am not a C++ programmer but I am currently attempting to port some C++ code and have hit the following line:
virtual int GetGlobalStateType () const = 0;
I was wondering what the overall construct of the line implied. I THINK that
virtual - means that it can essentially be overriden?
int - the type returned by this method? (god I hope this is right)
GetGlobalStateType () - the method name? (god I hope this is right too lol)
cont - OK, this is the bit that I don't know....
It is that it is simply assigning the default value of the return to 0 and because that default never changes that it is infact a constant value??
Any clarification would be cool, and I probably have more on the way, this code is all smart pointers and cool crazy gubbins that don't exist in my usual language 
Regards
RipX
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|