Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132939 views
License: OTHER
1
/**
2
* Methode, die ein neues Stadtrad erstellt.
3
* @return neues Stadtrad
4
*/
5
public Bike createCityBike() { //Methodensignatur der Methode createCityBike
6
Wheels cityWheels = new Wheels(559,50f,10000); //Räder des Stadtrads erstellen
7
Gears cityGears = new Gears(3,1,5000); //Gangschaltung des Stadtrads erstellen
8
Bike newCityBike = new Bike(cityGears, cityWheels, "Stahl", "CB105", true, true, 30000); //Stadtrad erstellen
9
return newCityBike; //Stadtrad zurückgeben
10
}
11
12