Capgemini Interview Question

Polymorphism Swapping with out a temporary variable