Question: CSC 211-HOMEWORK ASSIGNMENT NAME REMEMBER-NEATNESS COUNTS! 2) What is printed by the following piece of code? #includeiostream> using namespace std class secretType public: void setITt(int,int);
CSC 211-HOMEWORK ASSIGNMENT NAME REMEMBER-NEATNESS COUNTS! 2) What is printed by the following piece of code? #includeiostream> using namespace std class secretType public: void setITt(int,int); void printO const; void incrementYO private: int x; int y; int main0 secretType mine yours; mine.setITG,2); yours.setIT(4,5); mine.printO; yours.print0; mine.incrementYO; mine.print0; yours.print0; void secretType::setI'T(int a, int b) x-a; void secretType::print0 const void secretType:incrementYO y++;}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
