Tenerity India interview question

Basic Oop fundamentals and puzzles.