import java.util.Random; public class Auto { int raeder; String farbe; public Auto(String f) { Random rand = new Random(); raeder = rand.nextInt(50); farbe = f; } public void hupe() { System.out.println("Hup-Hup"); } public void setzRaeder(int r) { raeder = r; } public void Ausgabe() { System.out.println("ich bin ein" + farbe + "es Auto!"); hupe(); } }