Adapter
1. Usage Converts interface of one class which required into another interface which can be called. This pattern also knows as Wrapper. Can be useful with Legacy classes which cannot be changed. It can be implemented 2 ways: Class Adapter: Adapter sub-class required class and at same time implement interface client want to use. Such […]