8.4k views
1 vote
The copy constructor for a class is called____________.

a. when an object of the class is passed by value to a function.
b. when an object of the class is initialized by another object of the class.
c. when a function returns an object of the class.

1 Answer

2 votes

Answer:

b.) when an object of the class is initialized by another object of the class

Step-by-step explanation:

the copy constructor for a class is called when an object of the class is initialized by another object of the class

User Davidmytton
by
8.4k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.