Learning Java/Objects and Classes: Difference between revisions

Content deleted Content added
No edit summary
→‎Methods: Just fixing a minor bug
Line 127:
{
Ship aShip = new Ship(5); //The ship now has a speed of 5.
shipaShip.accelerate(5); //The ship now has a speed of 10.
}
}