ACET Infotech interview question

oops concepts