QUESTION 10 Print person1\'s kids, apply the IncNumKids() function, and print ag
ID: 3717815 • Letter: Q
Question
QUESTION 10 Print person1's kids, apply the IncNumKids() function, and print again, outputting text as below. End each line with newline. Sample output for below program Kids: 3 New baby, kids now: 4 #include using namespace std; class Personlnfo public: void SetNumKids(int personsKids); void IncNumKids) int GetNumKids() const; private int numKids; void Personlnfo:SetNumKids(int personsKids) numKids-personsKids; return; void Personlnfo::IncNumKids(){ numKids = numKids + 1 ; return; int Personlnfo::GetNumKids const return numKids; int main(0 Personlnfo person1; person1.SetNumKids(3); /* Your solution goes here*/ return 0; a. coutExplanation / Answer
the answer is b..Because there is some space between the second IncNumkids function and colon within the strig
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.