public class Fahrzeug{ /**Instanzvariablen * *Hier werden Länge, Position und Fahrer festgelegt *@param length type int, Länge in m, realistische Werte bevorzugt *@param Fahrer type String, Randomsidefact für Fahrzeuginfo - der Fahrer *@param position type int, Legt die Position in ArrayList fest. * */ protected int length; protected String fahrer; protected int position; protected String symbol; //Konstruktor Fahrzeug(int pos, int l, String f, String sym){ this.position = pos; this.length = l; this.fahrer = f; this.symbol = sym; } Fahrzeug(int pos, String f){ this.position = pos; this.fahrer = f; } }