If I have 2 classes A and B, is there a way I can make an instance of class A "jump" to class B and vice versa?
I'd like to write a function for class A that, when called, essentially makes that instance of class A get reinitialized as a class B object and continue its execution as a normal instance of class B would. I'd like to make a similar function for class B. Is this possible?
classIMHO. But others may disagree.