Is there a way to overload the pointer assignment operator? e.g. overload pointer assignment operator for class A when
A *x, *y; x = y;
There is no "pointer assignment operator". This is the assignment operator and you are using it with pointer operands.
It's not possible to overload an operator unless at least one operand has class or enum type. (Pointer type is not class type).