TPS interview question

Some OOP concepts