Created on Fri Jan 15 2021 08:43:24 GMT+0000 (Coordinated Universal Time)
More creations to inspire you
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.