NiCE Interview Question

basic oop concepts..some puzzles...