What are the types of copy constructor?

Copy Constructor is called when an object is either passed by value, returned by value, or explicitly copied . If there is no copy constructor, c++ creates a default copy constructor which makes a shallow copy.

Sizin İçin Seçtik  How do you write a class in C?

Leave a Reply

Your email address will not be published. Required fields are marked *