prog.cpp: In function ‘int main()’:
prog.cpp:35:9: error: cannot declare variable ‘b’ to be of abstract type ‘CBaseB’
CBaseB b;
^
prog.cpp:25:7: note: because the following virtual functions are pure within ‘CBaseB’:
class CBaseB : public CBaseA, public ITestB
^~~~~~
prog.cpp:7:18: note: virtual void ITestA::methodA()
virtual void methodA() = 0;
^~~~~~~