IBM interview question

OOP Concepts.