You are on page 1of 1

Circle

PrismsTest «interface»
Prism -radius: float
+main(args: String[*]): void -area: float
+calculateVolume(): void +Circle(radius: float): void
-calculateArea(): void
+toString(): String

«abstract»
RegularPrism Hexagon
«interface»
+base: Polygon Polygon -side: float
+height: double -apoteme: float
+volume: double
+calculateArea(): void +Hexagon(side: float, apoteme: float): void
+calculateVolume(): void +calculateArea(): void
+toString(): String +toString(): String

Cylinder
Square Pentagon

+Cylinder(base: Circle, height: double): void -side: float -side: float
+toString(): String -area: float -apoteme: float
+Square(side: float): void +Pentagon(side: float, apoteme: float): void
QuadrangularPrism +calculateArea(): void +calculateArea(): void
+toString(): String +toString(): String

+CuadrangularPrism(base: Square, height: double): void
+toString(): String

HexagonalPrism

PentagonalPrism +HexagonalPrism(base: Hexagon, height: double): void
+toString(): String
+PentagonalPrism(base: Pentagon, height: double): void
+toString(): String