IBM interview question

Basic oop questions all round.