static void Main(string[] args) { RechnerModel model = new RechnerModel(); ConsoleView view = new ConsoleView(model); AnwendungsController controller = new AnwendungsController(view, model); controller.Ausführen(); }
private RechnerModel model; //Attriut // BenutzerWillBeenden = false; public ConsoleView(RechnerModel model) //Konstruktor { this.model = model; //Attribut (li) wie auch Parameter (re) heißt model }
private RechnerModel model; //Attribute zugewiesen public AnwendungsController(ConsoleView view, RechnerModel model) { this.view = view; this.model = model; }