Adapter 3

Author: Rohit

Date: December 14, 2011

by Rohit
12-14-11
Any idea Jojo , how we are going to satisfy OCP.
I think our Switch class should call a common interface like serverInterface and not directly access Light class.
Ok !
Switch will access Light or Fan through ServerInterface,not directly. With this design we can use switch to control other devices also.