IBM interview question

Basic OOPs concepts