#include<iostream>
using namespace std;
class Dog
{
public:
void Bark();
void Eat(float foodQuantity);
// You will have to define Walk in class
// it will cause the dog to change its
// location
float size, weight, location;
};
int main()
{
Dog fido;
fido.weight=40.5;
fido.size=10;
fido.Eat(20);
cout << fido.weight << " "
<< fido.size << endl;
return 0;
}
void Dog::Bark()
{
cout << "Woof woof!\n";
}
void Dog::Eat(float foodQuantity)
{
weight+=foodQuantity;
size+=foodQuantity;
}