Upload files to "Aufgaben"

This commit is contained in:
2025-07-29 08:22:16 +02:00
parent 899a05907b
commit a4e0e88d93
5 changed files with 108 additions and 0 deletions

9
Aufgaben/AutoAufruf.java Normal file
View File

@@ -0,0 +1,9 @@
public class AutoAufruf {
public static void main(String args[]){
Auto car = new Auto("Rot", 140, 5, "GHSE");
System.out.println("Das Auto von " + car.getHersteller() + " ist " + car.getFarbe() + ", hat " + car.getLeistung() + "PS und " + car.getAnzTueren() + " Türen.");
car.tuning(40);
car.tuning(25);
}
} // end of AutoAufruf