C++ MQCs with Explanation (CHAPTER 6: CONSTRUCTORS AND DESTRUCTORS)

Which one of the following declations represents the legal copy constructor for the class X?

  1. X (X);
  2. X (&X);
  3. X (X&);
  4. X ( );



Answer: 
Option c: X (X&);

Explanation Here

Post a Comment

0 Comments