Question: Please answer in C++ please, thank you. xercise 04 iven the following class definition: class YourClass public: YourClass ( ); YourClass ( int num1, double
Please answer in C++ please, thank you.

xercise 04 iven the following class definition: class YourClass public: YourClass ( ); YourClass ( int num1, double num 2); // constructor void process( ); // a member function private: int ival; double dval ; Which of the following declarations of objects are invalid? a. YourClass obj1; b. YourClass obj2 ( 34,12.75); c. YourClass obj3 ( ); d. YourClass obj4; obj4 = YourClass ( ) e. YourClass obj5; obj5 = YourClass (25,3.87) f. YourClass obj6 (10,5.20); YourClass obj7 ( obj6 ); g. YourClass obj8 (-7,-87.0); YourClass obj9 = obj8 ; h. YourClass obj10 = YourClass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
