Question: Suppose you have to write a program that will work as the single controlling mechanism for switching off / on your home appliances. If you
Suppose you have to write a program that will work as the single controlling
mechanism for switching off on your home appliances.
If you will go to the office, then it will do following operations:
Switch OFF Lights
Switch OFF TV
Enable Home Security System
Again when you will come back to home from office then following operations will
be performed:
Switch ON Lights
Switch ON TV
Disable Home Security System
Following classes were implemented for this system. Lights. TV
HomeSecurtiySystem, are subsystem classes and class namely provides an
interface for client to access complex subsystem.
What is the name of this design pattern?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
