SAMB INFO interview question

oops concepts, constructor