Hexaware Technologies Interview Question

Question related to Object oriented programming