![]() ![]() Now suppose our client changes the requirement and he wants the toyDuck to makeSound than ? Suppose we have a bird that can makeSound(), and we have a plastic toy duck that can squeak(). Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces. The adapter pattern convert the interface of a class into another interface clients expect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |