What is the difference between these two classes? In the second one protected:
looking like it isn't doing anything at all, there's nothing under it umbrella.
class Tank
{
protected:
int wheels;
public:
void setWheels(int newWheels) { wheels = newWheels; }
int getWheels() { return wheels; }
};
///////////////////////////////////////////////////////////////
class Tank
{
private:
int wheels
protected:
public:
void setWheels(int newWheels) { wheels = newWheels; }
int getWheels() { return wheels; }
};