CADS Software interview question

basic oops concepts