educlash.com · 2. For copying the object values, both objects must belong to same class. Syntax:...
48
educlash.com · 2. For copying the object values, both objects must belong to same class. Syntax: class Name (const class Name &obj) { // body of constructor Example of Copy Constructor