<<< Covariant virtual functions | Index | Implementing adapters >>> |
Problem:
We need an interface of abstract class Base.
We already have another class Done, that implements the needed behavior, but with the wrong interface.
Solution:
Derive new class Adapter from Base.
Add Done object as a member of Adapter class.
Use thin layer of code around Done object to implement the desired Base interface.
<<< Covariant virtual functions | Index | Implementing adapters >>> |