Amadeus interview question

Dynamic polymorphism in c plus plus