edited by
5,498 views

1 Answer

Best answer
1 1 vote
In C++, a Copy Constructor may be called in following cases:
1. When an object of the class is returned by value.
2. When an object of the class is passed (to a function) by value as an argument.
3. When an object is constructed based on another object of the same class.
4. When compiler generates a temporary object.

 

Hence, ans B
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
1.4k
1.4k views
rishu_darkshadow asked Sep 25, 2017
1,381 views
How many constructors can a class have ?zero 1 2 any number
0 0 votes
1 1 answer
3.3k
3.3k views
go_editor asked Mar 28, 2020
3,301 views
Which of the following is true of constructor function in C++ ?A class must have at least one constructor.A constructor is a unique function which cannot be overloaded.A ...
0 0 votes
0 0 answers
1.4k
1.4k views
rishu_darkshadow asked Sep 25, 2017
1,394 views
When a language has the capability to produce new data types, it is said to be :extensible encapsulated overloaded none of the above
1 1 vote
1 1 answer
1.4k
1.4k views
Misbah Ghaya asked Oct 1, 2016
1,413 views
Constructors have _____ return type.voidcharintno