2 changed files with 20 additions and 0 deletions
Binary file not shown.
@ -0,0 +1,20 @@ |
|||||
|
+----------------+ |
||||
|
| <<abstract>> | |
||||
|
| Shape | |
||||
|
+----------------+ |
||||
|
| | |
||||
|
| + getArea(): double (abstract) | |
||||
|
| + display() | |
||||
|
+----------------+ |
||||
|
▲ |
||||
|
│ |
||||
|
+-----+-----+-----+ |
||||
|
| | | |
||||
|
+----------+ +----------+ +----------+ |
||||
|
| Circle | | Rectangle| | Triangle | |
||||
|
+----------+ +----------+ +----------+ |
||||
|
| -radius | | -width | | -sideA | |
||||
|
| | | -height | | -sideB | |
||||
|
| +getArea()| | +getArea()| | -sideC | |
||||
|
+----------+ +----------+ | +getArea()| |
||||
|
+----------+ |
||||
Loading…
Reference in new issue