In Time Tec interview question

OOPS concepts with real time example