Вы находитесь на странице: 1из 1

Geometry

- Shapes: TreeSet

1...*

Shape

# origin: Point
# name: Text
# area: Double
# perimeter: Double 
# volume: Double

# Shape() 1
# getOrigin(): Point
# getName(): String
# distance(Shape) other: Double
# distance(Shape a, Shape b): Double
# move(Double dx, Doube dy): void
+ toString(): String

Extends

Extends

1...*
1...*
Rectangle Circle Point
Text
# width: Double - radius: Double - colour: Colour
# length: Double - text: String - xCoordinate: Double
+ Circle() - yCoordinate: Double
+ set_radius(): void + Text()
+ Rectangle()
+ get_radius(): Double + setText(): void + Point(Double a, Double b, 
# set_length(): void
+ area(): Double + getText(): String colour c)
# get_length(): Double
+ perimeter(): Double + toString(): String + toString(): String
# area(): Double
+ volume(): Double + getx(): Double
# perimeter(): Double
+ toString(): String + setx(Double newvalue):
# volume(): Double
+ toString(): String  void
+ gety(): Double
+ sety(Double newvalue):
 void
+ distance(Point other):
Extends Double
+ distance(Point than, Point
other): Double

1
Prism

- height: Double

+ Prism () Colour
+ set_height(Double h): void
+ height(): Double - colour: String
+ area(): Double
+ perimeter(): Double + Colour()
+ volume(): Double + setColour(String 
+ toString(): String newColour): void
+ toString(): String

Вам также может понравиться