mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Updated boat class constructor
- add a new constructor to accept boat velocity #story[6]
This commit is contained in:
@@ -14,6 +14,10 @@ public class Boat
|
|||||||
public Boat(String teamName) {
|
public Boat(String teamName) {
|
||||||
this.teamName = 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
|
Returns the name of the team sailing the boat
|
||||||
|
|||||||
Reference in New Issue
Block a user