Edifecs interview question

Question related to oops and sql