mirror of
https://github.com/DerTyp7/lf05-java.git
synced 2025-10-30 12:57:12 +01:00
interface
This commit is contained in:
12
src/interfaces/Motorrad.java
Normal file
12
src/interfaces/Motorrad.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package interfaces;
|
||||
|
||||
public class Motorrad implements IVehicle{
|
||||
|
||||
public void bremsen() {
|
||||
System.out.println("Bremsen");
|
||||
}
|
||||
|
||||
public void beschleunigen() {
|
||||
System.out.println("fahren");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user