AJ DEVTECH interview question

Basis OOP's concept