From a3c1630e2e28f81a8f8ec53deec225505624efd8 Mon Sep 17 00:00:00 2001 From: Haoming Yin Date: Tue, 7 Mar 2017 20:28:45 +1300 Subject: [PATCH] Updated boat class constructor - add a new constructor to accept boat velocity #story[6] --- src/main/java/seng302/Boat.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/seng302/Boat.java b/src/main/java/seng302/Boat.java index 2205f025..c52223c0 100644 --- a/src/main/java/seng302/Boat.java +++ b/src/main/java/seng302/Boat.java @@ -14,6 +14,10 @@ public class Boat public Boat(String teamName) { this.teamName = teamName; } + public Boat(String teamName, float boatVelocity) { + this.teamName = teamName; + this.velocity = boatVelocity; + } /* Returns the name of the team sailing the boat