praveen kumaar wrote:the same name(as one is already present) but with different signature(it includes the argument as well as return type,their are various permutations for this implementation)
Campbell Ritchie wrote:Although you sometimes hear terms like, “compile‑time polymorphism,” I do not believe that
overridingoverloading constitutes polymorphism at all. It means that the behaviour of two objects at runtime might be different because their runtime type is different even if their compile‑time types (=declared types) are the same.
In Java® that means overridden accessible (not private) non‑final instance methods. And nothing else.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton