79329561

Date: 2025-01-04 20:42:14
Score: 2
Natty:
Report link

Imagine you're in a geometry class, and you have shapes: Circles, Rectangles, and Triangles. They all have a common interface, say, 'draw()'. Now, each shape has its own way of drawing, right? Circles draw in one way, Rectangles in another, and Triangles yet another. This is what Polymorphism is all about - one interface, many implementations.

Refer: https://reloadbasics.com/java/Concept_of_Polymorphism_in_Java

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kumar S