DEV Community

hema latha
hema latha

Posted on

1

what is polymorphism ?

Polymorphism is the ability of an object to take on many forms
A concept by which we can perform a single action by diff ways

polymorphism -- two types

run time polymorphism --- is a method overridding
compile time polymorphism --- is a Method overloading

poly means -- many
morphs means -- forms
so polymorphism means many forms

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay