Rently interview question

Asked about the oops concepts