2075 5

Object Oriented Programming20755 marksThe Default Copy Constructor

Explain the default action of the copy constructor. Write a suitable program that demonstrates the technique of overloading the copy constructor.

Explain the default action of the copy constructor. Write a suitable program that demonstrates the technique of overloading the copy constructor. [5]

A copy constructor is a special constructor that creates a new object as a copy of an existing object of the same class. It is called automatically when: - An object is initialized with another object of the same class - An object is passed by value to a function - An object is returned by value ...

Up nextBriefly explain types of inheritance used in object oriented programming.