Original Post
I''m sure that someone in here has programmed using classes in MS VC++, but I have not so I came here to ask ask a question about classes. In OOP (Object Oriented Programming) how do you know what parts to declare as Private, Protected, or Public? Lets say this is my code...
class Fire
{
public:
void Shoot(void);
private:
void Grenade(void);
protected:
bool Darts(void);
};
So what would be declared what, does it go by the number of times it is accessed or by weather or does it not matter?