public class Motorsykkel extends Kjøretøy { protected String motortype; public Motorsykkel(String id, String merke, String modell, int år, String motorType) { super(id, merke, modell, år); // Superklasse sin konstruktør! this.motortype = motorType; } // Hent metdoer public String hentMotortype() { return motortype; } // Sett metoder public void settMotortype(String motortype) { this.motortype = motortype; } }