What methods would you add to make this class declarationvery useful?
2 answers:
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()
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:
You might be interested in
the answer is slide
I took notes off of plato and it quoted word for word
A slide is a visual aid, also known as a single screen of presentation
:) hope this helps
Answer:
Virtual Machine
Explanation:
<em> I had to look this up, since there were no options from the question. If this is wrong, let me know!</em>
C is correct.. Please vote my answer branliest! Thanks.
Answer: in solution.
Explanation:
It is basically 194 divided by 11 since we are evenly grouping 194 seeds into 11 pots. This gives 17.636363…
This means that the best estimate is around that number.
Answer: Plug and play
Explanation:
Adding a new hardware to the computer activate the plug and play module of the operating system which installs the hardware device into the computer and enables us to use it immediately.