Virtusa Interview Question

Polymorphism two types codes with explanation