In Time Tec Interview Question

on oops concepts