Anonymous interview question

Questions are came from Object oriented programming