Optimiza interview question

from the interview how to achieve the Polymorphism?

Interview Answer

Anonymous

7 Aug 2018

by creating a class and override a method