forked from JavaTX/JavaCompilerCore
17 lines
333 B
Java
Executable File
17 lines
333 B
Java
Executable File
public class Auto {
|
|
|
|
tachoStand;
|
|
|
|
public void fahren(distanz) {
|
|
tachoStand = tachoStand + distanz;
|
|
}
|
|
|
|
public void abschleppen(auto, distanz) {
|
|
auto.fahren(distanz);
|
|
}
|
|
public static void main(String[] args) {
|
|
meinPKW.fahren(100);
|
|
bmw.fahren(100);
|
|
bmw.fahren(100);
|
|
}
|
|
} |