Professional Documents
Culture Documents
Surface <abstract>
# area : double
+ abstract computeArea () : void
+ getArea() : double
Rectangle
- base : double
- height: double
+ Rectangle(double, double)
Circle
- radius : double
+ Circle (double)
Circle(double)
- sets the radius of the circle
getArea(): double
- returns the attribute area
computeArea() : void
- find the area of the surface