Sometimes the classes that need to work together do not have compatible interfaces. In that case, to make the two classes talk to each other, Adapter pattern is implemented. This pattern is a structural pattern as it combines the capabilities of two different interfaces. Think of it as a dvd player which acts as an adapter between the dvd and the television.
Following is an implementation in Fortran.
Github - Adapter Pattern
Fork
Following is an implementation in Fortran.
Github - Adapter Pattern
No comments:
Post a Comment