|
|
| | |
| We are breaking DIP which says Policy or High level mechanism should not depend on details. | |
| | |
|
|
| | |
| Oh yes ! Here any change in ControlledInterface will force the changes to Client Interface , Button in our case. | |
| | |
|
|
|
|
|
| | |
| Yes true, Implementation should never force the high level policy to change , infact it should be the other way around. | |
| | |
|
|
| | |
| So Nick what should we do now? | |
| | |
|
|
|
|
|
| | |
| Just we need to invert the ownership of interface to client from Server. | |
| | |
|
|
| | |
| What we are getting with this ? | |
| | |
|
|
|