Presentation is loading. Please wait.

Presentation is loading. Please wait.

Winter 2011ACS - 3913 Ron McFadyen1 Façade A façade simplifies access to a related set of objects by providing one object that all objects outside the.

Similar presentations


Presentation on theme: "Winter 2011ACS - 3913 Ron McFadyen1 Façade A façade simplifies access to a related set of objects by providing one object that all objects outside the."— Presentation transcript:

1 Winter 2011ACS - 3913 Ron McFadyen1 Façade A façade simplifies access to a related set of objects by providing one object that all objects outside the set use to communicate with the set A façade defines a higher-level interface that makes a subsystem easier to use Façade Class subsystem

2 Winter 2011ACS - 3913 Ron McFadyen2 Façade The facade class knows the subsystem classes and delegates requests to appropriate subsystem objects. Subsystem has no knowledge of the facade - has no reference to it Facade facade subsystem Façade Class

3 Winter 2011ACS - 3913 Ron McFadyen3 Façade A Façade simplifies access to a related set of objects by providing one object that all objects outside the set use to communicate with the set. This avoids the problem of having to reference many different, complicated interfaces to each object of that set. Consider text example …

4 Winter 2011ACS - 3913 Ron McFadyen4 Façade Now, what are the similarities & differences wrt Façade and Adapter? 

5 Winter 2011ACS - 3913 Ron McFadyen5 Façade vs Adapter provides an object that acts as an intermediary for method calls between client objects and one other object not known to the client objects. Adapter provides an object that acts as an intermediary for method calls between client objects and multiple objects not know to the client objects. Façade


Download ppt "Winter 2011ACS - 3913 Ron McFadyen1 Façade A façade simplifies access to a related set of objects by providing one object that all objects outside the."

Similar presentations


Ads by Google