Cerillion interview question

OOPS CONCEPT