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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!