Which one of the following is TRUE about a copy constructor?
- It is used for passing address of data members
- It declares and initializes an object from another object
- It is invoked automatically when an object the class is declared
- We can pass the argument by value to it
Answer:
Option b: It declares and initializes an object from another object
Explanation Here
0 Comments