Classes don't have addresses, so what exactly does the address your changing contain? And how are you going to create a pointer to something that has no address?
Now, if (a) and (b) are really instances of classes A and B (and class B is derivedfrom A) then the only address you can change is (a) without affecting (b).
Just remember, (a) and (b) are instantiated from definitions A and B, respectively; the definitions are consumed at compile-time and the instantiation occurs at run-time.Once the program is off and running, there are no *handles* to A and B to manipulate.