Define a separate adapter class that converts the (incompatible) interface of a class ( adaptee) into another interface ( target) clients require.The adapter design pattern describes how to solve such problems: Often an (already existing) class can't be reused only because its interface doesn't conform to the interface clients require.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |