Question: 9. In the following code, indicate if the selected lines are legal or illegal: #include class small public: small( ) {size-01); void k() consti void

 9. In the following code, indicate if the selected lines are

9. In the following code, indicate if the selected lines are legal or illegal: #include class small public: small( ) {size-01); void k() consti void h(int i) friend void f (small z)i private: int sizej di void small::k) const small x, yi x = y; // LEGAL/ILLEGAL? x.size = y.size; // LEGAL/ILLEGAL ? x.size3 1/ LEGAL/ILLEGAL? di void small: :h(int i) Ii void f(small z) small x, yi x = y; // LEGAL / ILLEGAL? x.size- y.size; 1/ LEGAL/ILLEGAL? x.size= 3; // LEGAL/ILLEGAL? x.h(42)i 1/ LEGAL/ILLEGAL? int main) [ small x, y; x - yi // LEGAL/ILLEGAL? x.size=y.size; // LEGAL/ILLEGAL? x.size -3 17 LEGAL/ILLEGAL? x.h(42) // LEGAL/ILLEGAL? return 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!