Interfaces may be incompatible, but the inner functionality should suit the need. This is the real-world definition for an adapter. The key idea in this pattern is to work through a separate adapter that adapts the interface of an (already existing) class without changing it.Ĭlients don't know whether they work with a target class directly or through an adapter with a class that does not have the target interface.Īn adapter allows two incompatible interfaces to work together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |