Scripts: Copy constructor

 

Copy constructor:

Have you ever wondered how to safely return automatic objects with functions without memory leaks?

Author: DMITRII PECHERITSA

 

Hi,


is this for copying trades?

 
it is a programming trick, nothing to do with trading.
 
Soewono Effendi:
it is a programming trick, nothing to do with trading.
thanks
 
PARTS OF CLASS A*/

yes, sometimes delegating other objects to the needed class is very helpfull... thank you for your example... and A Fa(){/*...*/} &  A Fb(){/*...*/} - are just some function-examples using  A & B objects -- do I understand correctly?..

p.s. anyway thank you for this examples of Constructors (is very helpfull for beginners in OOP)

Reason: