Whats with all the voids in a class??
e.g
Class Blah
{
public:
Blah;
virtual ~Blah;
void............;
void............;
private:
Blah; <<<<<<< No void?????
Blah;
};
#endif
I newbie soo don't be scared of sounding patronising....
Whats with all the voids????
Started by Jon on Toast, Jan 05 2008 05:46 PM
2 replies to this topic
#1
Posted 05 January 2008 - 05:46 PM
#2
Posted 05 January 2008 - 05:49 PM
"void" means that there is no return code for a particular method. It is used to implement what used to be called a "procedure" in Pascal and BASIC.
In the private part you are declaring variables rather than methods so you don't need to worry about return codes.
In the private part you are declaring variables rather than methods so you don't need to worry about return codes.
#3
Posted 05 January 2008 - 08:04 PM
Thank you.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











