Skip to Content
Entwurfsmuster von Kopf bis Fubß
book

Entwurfsmuster von Kopf bis Fubß

by Eric Freeman, Elisaebth Freeman, Kathy Sierra, Bert Bates
December 2005
Beginner to intermediate
672 pages
14h 12m
German
O'Reilly Verlag
Content preview from Entwurfsmuster von Kopf bis Fubß

7.12. Die Heimkino-Fassade aufbauen

Gehen wir den Aufbau der HeimkinoFassade durch: Der erste Schritt ist es, Komposition zu verwenden, damit die Fassade Zugriff auf alle Komponenten des Basissystems hat:

public class HeimkinoFassade { Verstärker verstärker; Tuner tuner; DvdSpieler dvd; CdSpieler cd; Beamer beamer; Beleuchtung beleuchtung; Leinwand leinwand; PopcornMaschine popcorn; public HeimkinoFassade(Verstärker amp, Tuner tuner, DvdSpieler dvd, CdSpieler cd, Beamer beamer, Leinwand leinwand, Beleuchtung beleuchtung, PopcornMaschine popcorn) { this.verstärker = amp; this.tuner = tuner; this.dvd = dvd; this.cd = cd; this.beamer = beamer; this.leinwand = leinwand; this.beleuchtung = beleuchtung; this.popcorn = popcorn; } // hier kommen die ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Netzwerke von Kopf bis Fuß

Netzwerke von Kopf bis Fuß

Al Anderson, Ryan Benedetti
JavaScript-Programmierung von Kopf bis Fuß

JavaScript-Programmierung von Kopf bis Fuß

Eric Freeman, Elisabeth Robson
Servlets und JSPs™ von Kopf bis Fuß

Servlets und JSPs™ von Kopf bis Fuß

Bryan Basham, Kathy Sierra, Bert Bates
Programmieren von Kopf bis Fuß

Programmieren von Kopf bis Fuß

David Griffiths, Paul Barry

Publisher Resources

ISBN: 9783897214217Errata Page