public class Main { public static void main(String[] args) { Parkeringshus pHus = new Parkeringshus(3); System.out.println(pHus + "\n"); Sjafor meg = new Sjafor(21, "Veronica"); Bil toyota = new Bil("ZH56231", meg, 5); pHus.settInn(toyota, 2); System.out.println(pHus + "\n"); // Litt mer kompleks tegning: // toyota.hentPassasjer(new Person(23, "Kari")); Kjoretoy mc = new Motorsykkel("FD93513", new Sjafor(29, "Ola")); pHus.settInn(mc, 0); System.out.println(pHus); } }