Question: 1. Copy constructor is a constructor which ________________ 2. The copy constructor can be used to ? have exactly same data members and member function

1. Copy constructor is a constructor which ________________

2. The copy constructor can be used to ? have exactly same data members and member function and only they differ by class name. Can copy constructor be used to initialize one class object with another class object?

4. The copy constructors can be used to ________

5. Which returning an object, we can use ____________?

6. If programmer doesn't define any copy constructor then ?

7. If a class implements some dynamic memory allocations and pointers then _____________

8. What is the syntax of copy constructor?

9. Object being passed to a copy constructor ?

10. Out of memory error is given when the object _____________ to the copy constructor.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!