Honeywell interview question

Polymorphism in C++ vs Java