What does it mean to have void as the parameter for the prototype of a member function ie
void set(void);
What does it mean to have void as the parameter for the prototype of a member function ie
void set(void);
It doesn't return a value.
Code:class foo { int abc; public: void set(){abc=5;};//sets abc to five }
thanks
I noticed you didn't use the keyword private in your class declaration. Is this the default then?
in a class everything defaults to private, unless otherwise noted.
the best things in life are simple.
It is good practice to start a class with a private/public keyword, dont know why, just is..
VC++ 6