3 oop
3 oop
class Shape {
this.radius = radius;
@Override
this.length = length;
this.width = width;
@Override
class Calculator {
return a + b;
return a + b;
return a + b;
Shape shape;
shape = circle;
shape.calculateArea();
shape = rectangle;
shape.calculateArea();