class CName: virtual public IName{public:virtual QString GetName() const { return m_name; }}
class CTask: virtual public CName, virtual public ITaskName{public:using CName::GetName;}
class CTask...virtual const QString GetName() const { return CName::GetName(); }...
C++ (Qt)#include <iostream> class IPrint { public: virtual void print() = 0;}; class Print: public IPrint {}; int main() { IPrint t; return 0;}