Techlead interview question

Asked about basic oop concept related questions