NiCE interview question

basic oop concepts..some puzzles...