Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created August 11, 2020 09:24
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/1a930dc8e341daea896ee0d2a1c7ed8d to your computer and use it in GitHub Desktop.
Save BMU-Verlag/1a930dc8e341daea896ee0d2a1c7ed8d to your computer and use it in GitHub Desktop.
public class FahrzeugVerwalten {
public static void main(String[] args) {
Motorrad meinMotorrad = new Motorrad("BMW", "R 1200 RT", 225, "Viertakter");
System.out.println("Marke: " + meinMotorrad.getMarke());
System.out.println("Modell: " + meinMotorrad.getModell());
System.out.println("Anzahl der Räder: " + meinMotorrad.getRaeder());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment