Skip to content

Run-Time polymorphism

M. Hamza Haroon requested to merge task-3-branch-Q2 into main
  1. Write a program in java that computes the areas of Circle, Triangle and Rectangle using Run-Time polymorphism. HINT: 1. You can Use only one method name for calculating area of all the shapes - e.g:"calculateArea()". Inheritance is allowed.

Merge request reports