Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

C++ | Constructors | Question 2

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

When a copy constructor may be called?
(A) When an object of the class is returned by value.
(B) When an object of the class is passed (to a function) by value as an argument.
(C) When an object is constructed based on another object of the same class
(D) When compiler generates a temporary object.
(E) All of the above


Answer: (E)

Explanation: See When is copy constructor called?

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads