HCLTech interview question

OOPS concepts, polymorphism, virtual, smart ptr