Question: Write the code to implement the following UML diagram: package Data The Marina ]] Customer -number: String -name: String ia Boat -address: String +Customer(

Write the code to implement the following UML diagram: package Data The Marina ]] Customer -number: String -name: String ia Boat -address: String +Customer( number: String) -customer +getNumber(): String +getName(): String +getAddress(): String +getBoat(): Boat +setName( name: String): void +addBoat( boat: Boat): void on-comm -manufacturer: String -year: Integer -boat Boat(registration No: String) +getLength(): float +getManufacturer(): +getYear(): Integer String +getCustomer(): Customer Trailerable +tow(): void SailBoat -numberOfSails: Integer +SailBoat( registration: String) +numberOfSailes(): Integer +tow(): void The circle in the right hand corner shows this class is an "Interface". SpeedBoat +tow(): void PowerBoat -inboard: boolean -outboard: boolean +PowerBoat( registration: String) +inboad(): boolean +outboar(): boolean Use Only
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
