Deloitte interview question

Implement oops concept in real time