How can someone solve such a problem with classes and enter at least the maximum possible code? That's what i
Basic interface for everything
class IWindow
{
public:
virtual void Refresh() = 0;
};
This interface is used inside a library that has no idea about a particular implementation.
Here is a specific implementation version
class ConcreteWindow : public IWindow
{
public:
void Refresh() override {}
};
Now we have another interface that adds some additional methods, and is also used inside this library.
class IDBDetail : public IWindow
{
public:
virtual void DoDetail() = 0;
};
and here is the main problem when we create a specific inmplementation for it
class IGDBDetailWrapper : public IDBDetail, public ConcreteWindow
{
public :
void DoDetail() {}
};
, IGDBDetailWrapper , 100 , , ConcreteWindow, , , , .
/ 100 ConcreteWindow IGDBDetailWrapper, , 10 .
, , 100 ?