Changes

Jump to: navigation, search

Adapter

8 bytes removed, 15:11, 27 March 2007
Object Adapter Pattern
There are two specific types of adapter patterns - ''object adapter pattern'' and ''class adapter pattern''. The latter uses multiple inheritance whereas the former uses an instance of the reuseable class it wants to adapt. Between the two, object adapter pattern is the favored one due to the fact that popular languages such as Java do not support multiple inheritance.
== Object Adapter Pattern ==
This adapter pattern uses an instance of the class it wraps. By using an instance, methods belonging to the wrapped object can be invoked.
1
edit

Navigation menu