Suppose your program contains the following class definition (along with definitions of the member functions): class YourClass { public: YourClass(int newInfo, char moreNewInfo); YourClass(); void...



Suppose your program contains the following class definition (along with


definitions of the member functions):


class YourClass


{


public:



YourClass(int newInfo, char moreNewInfo);



YourClass();



void doStuff();


private:



int information;



char moreInformation;


};


Which of the following are legal?


YourClass anObject(42, 'A');


YourClass anotherObject;


YourClass yetAnotherObject();


anObject = YourClass(99, 'B');


anObject = YourClass();


anObject = YourClass;



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here