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

Which one of the following is TRUE about a copy constructor?

  1. It is used for passing address of data members
  2. It declares and initializes an object from another object
  3. It is invoked automatically when an object the class is declared
  4. We can pass the argument by value to it



Answer: 
Option b: It declares and initializes an object from another object

Explanation Here

Post a Comment

0 Comments