Respuesta :
Category(int age)- This method is used to declaring the age.
incrementingAge(int age)-This method is used for incrementing the age.
SettingAge(int age) -This method is used to initializing the age.
These are the three methods for making declaration very useful.
Explanation:
Class Cat
{
public:
Category(int age)
{
itsAge =age;
}
int incrementingAge(int age)
{
itsAge = itsAge+ age;
}
int SettingAge(int age)
{
itsAge =age;
}
int GetAge() const;
private:
int itsAge;
};Answer:
Answer:
void SetAge(int age) , void meow()
Explanation:
Since the class has an itsAge variable as private and has a GetAge() method. There should be a SetAge() method to set the value of the age.
Also, since it is a Cat class, it is better to have a method that mimics the voice of the cat, meow()