pickzy.com

C  |  C++  |  Objective-C  |  VC++  |  Win32  |  MFC  |  Java  |  Php  |  Delphi  |  Visual Basic  |  .Net  |  Networking  |  General  |  Games  |  Jobs  |  Javascript  |  




Menu

pickSourcecode.com


        

 




 

Cpp > Articles

 

When are copy constructors called?

When are copy constructors called?

Copy constructors are called in following cases: 
a) when a function returns an object of that class by value.
b) when the object of that class is passed by value as an argument to a function.
c) when you construct an object based on another object of the same class.
d) When compiler generates a temporary object.

 
Privacy Policy | About Us