HCLTech interview question

OOP concepts