AllianceBernstein interview question

C++ question about polymorphism