Skip to content

Compile-Time polymorphism

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

Merge request reports