Thoughtworks interview question

Standard OOP questions