You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a class called Shape with the attributes area(double) and member
function calculateArea() for calculating the area of different
shapes(square,circle,rectangle,triangle).Write a program to create an
object and call the findArea() function with one integer argument to
calculate the area of Square, two integer arguments to calculate the area of
Rectangle,one double argument to calculate area of Circle,three integer
arguments to calculate area of Triangle using function overloading.
0 commit comments