Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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