tags:

views:

37

answers:

1
$child_instance = (childClass)$parent_instance;
$parent_instance = (parentClass)$child_instance;

Or is it possible?

+1  A: 

No. After you use new ClassA you cannot change the type of class the class of that object.

Chacha102