Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created August 11, 2020 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/a805668933bae4a9a5381f85bd29b0b3 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/a805668933bae4a9a5381f85bd29b0b3 to your computer and use it in GitHub Desktop.
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