Angular Minds Interview Question

OOP concepts.