if the main class inherits from 2 classes with same virtual function but one of them is a pure virtual, will it just use the second one?
No. C++ will not assume that you want that behavior.
Or something else needs to be done?
You must implement the function if you don’t want the derived class to be abstract.
void Derived::func()
{
SomeBase::func();
}
solved c++ Multiple inheritance from 2 functions, while one of them is pure virtual [closed]