GlobalLogic interview question

OOPS Concepts like polymorphism and all