Revature Interview Question

What is polymorphism in the context of Java functions?

Interview Answer

Anonymous

May 8, 2017

Polymorphism is having a function with the same name being invoked based on the scope of your current class. i.e. Animal and a Dog class extension: if you have a dog object and you call display it will try to use the one in the "dog" class and then check above at "animal" for more instances etc or correct inputs if "dog" fails to have them.