Answer:
see explaination
Explanation:
#include <iostream>
using namespace std;
class Dog {
int months;
public:
void SetAge(int mnths);
string GetStage() const;
//FIXME: Add declarations of member functions and fields
};
//FIXME: Add definitions of member functions
void Dog::SetAge(int mnths)
{
months = mnths;
}
string Dog::GetStage() const
{
if(months<9)
return string("Puppy");
else if(months<13)
return string("Adolescence");
else if(months<60)
return string("Adulthood");
else
return string("Senior");
}
int main() {
Dog buddy;
buddy.SetAge(14);
cout << buddy.GetStage();
return 0;
}
See attachment for screenshot and output.
Answer:
True
Explanation:
Technically speaking they only have one.
Answer: Instance
Explanation: Instance is the term found in the object-orient programming concept. It is used for the realization of the variation present in any object specifically.The program execution at each time instant is known as the instance of program. Generation of realized instance is known as instantiation.
This helps in the accessing of the object in the program.Other options are incorrect entry , target and handle are not the technical term related with the accessing of object .Thus the correct answer is instance.