Created
August 11, 2020 09:09
-
-
Save BMU-Verlag/a805668933bae4a9a5381f85bd29b0b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FahrzeugVerwalten{ | |
public static void main(String[] args) { | |
Gebrauchtwagen meinAuto = new Gebrauchtwagen(10455, "VW", "Golf", 10000); | |
meinAuto.beschaedigungenEintragen("Delle am rechten Kotflügel"); | |
System.out.println("Kilometerstand: " + meinAuto.kilometerstandAusgeben()); | |
System.out.println("Marke: " + meinAuto.markeAusgeben()); | |
System.out.println("Modell: " + meinAuto.modellAusgeben()); | |
System.out.println("Preis: " + meinAuto.preisAusgeben()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment