Want to make creations as awesome as this one?

No description

Transcript

It means taking many forms, ‘poly’ means many and ‘morph’ means forms. It is the ability of a variable, function or object to take on multiple forms.In other words, it allows you define one interfaceor methodand have multiple implementations.

What is Overloading and Overriding?When two or more methods in the same class have the same name but different parameters, it’s called Overloading.When the method signature (name and parameters) are the same in the superclass and the child class, it’s called Overriding.