Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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. cout

Explanation / Answer

the answer is b..Because there is some space between the second IncNumkids function and colon within the strig

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote