Due: Tuesday 2/11 10:00am
Submission name: w04_aquarium-design.md
Overview
Over the next few days, we will create an aquarium program. In this program we will have an Tank
class, which will contain various subclasses of some root class (and possibly others). When the program is run, we will see the aquarium, and all of the animals in it moving about.
Class Diagrams
In class, you created inheritance and class diagrams for this program. Your job is to turn those diagrams into technical documentation using a diagram language called mermaid.
- You can find an example diagram using PathShape and its subclasses on theSource
- You can find documentation on how to make these diagrams here
- You can find a live editor here
- Finally, here is an example of mermaid code and resulting diagram:
classDiagram Animal <|-- Duck Animal <|-- Zebra class Animal { int age String gender isMammal() boolean mate() } class Duck{ String beakColor swim() quack() } class Zebra{ boolean is_wild run() }
Diagram:
classDiagram
Animal <|-- Duck
Animal <|-- Zebra
class Animal {
int age
String gender
isMammal() boolean
mate()
}
class Duck{
String beakColor
swim()
quack()
}
class Zebra{
boolean is_wild
run()
}