public class Kontroller { private View gui = new View(); private Teller modell = new Teller(); public void init() { gui.init(this); } void økTeller() { modell.oekTeller(); int x = modell.hentVerdi(); gui.oppdaterVerdi(x); } void nullstillTeller() { modell.nullstillTeller(); int x = modell.hentVerdi(); gui.oppdaterVerdi(x); } }