Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created August 11, 2020 09:23
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/1fc3ef18df0d2d86f5f7652730a3a37e to your computer and use it in GitHub Desktop.
Save BMU-Verlag/1fc3ef18df0d2d86f5f7652730a3a37e to your computer and use it in GitHub Desktop.
public class Motorrad extends Fahrzeug {
private final int raeder = 2;
private String takt;
public Motorrad(String marke, String modell, int maxkmh, String takt){
super(marke, modell, maxkmh);
this.takt = takt;
}
public int getRaeder(){
return this.raeder;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment