Task 4:
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. Solution: I created a class Area where there is a method name calculateArea and to achieve compile time polymorphism I overloaded that method in different scenarios to calculate area of different shapes