int main(){
  Test obj1(a,b,c);
  Test obj2(d,e,f);
  &obj1=&obj2;//This line wont work saying lvalue required on left side
}
What can i do to counter this error? I want to store address of obj2 into obj1 so their member variables become same(a=d,b=e,c=f) and when i change a member variable of obj1, it changes in obj2 aswell.
 
     
    