Mid
From PDF
GoF Patterns
Gang of Four Patterns
Facade Class (HomeTheaterFacade):?
- The HomeTheaterFacade class simplifies the process by offering two
high-level methods: WatchMovie() and EndMovie(). These methods
internally call the relevant methods on the subsystem components (e.g., On()
for the amplifier, Play() for the DVD player). The user doesn’t need to deal
with the details of how the components interact or manage their state.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png