Marvell Technology interview question

Question related to oops concepts