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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay