PwC interview question

Oops concepts, and basic of classes