I am actually confused about a concept. So, i want you guys to actually help me out. Forexample,
class_A obj1=new class_A();
Suppose the above statement initializes all instances of class_A with 5, 6 and 7.
class_A obj2=new class_A();
This is just a reference to the obj1. So, what if i want to assign all values of obj1 to obj2 but not as a reference, what should i do, other than using copy constructor.
I am waiting for your suggestions.