Question: Assume you have the following class declaration:class AAA { public:AAA ( int x 1 ) { x = x 1 ; } void setX (
Assume you have the following class declaration:class AAApublic:AAAint xxx; void setXint vxv;int getXreturn x;private:int x;;a There is no error in the class declarationb. Error because public methods members are defined before private data members of the classOc. Error because the class has no default constructorOd. Error because the class does not define copy constructor
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
