Angular Minds interview question

OOP concepts.