What I want to do is for Execute()
to run and completes it calls the Base::Done()
then calls the Derived::Done()
. I'm doing this because Base
class Execute
will do something and when its done call the Derived::Done()
. I hope I'm explaining it correctly. Kind of like a listener that is called when a task completed. I'm kinda stuck on how the Base
class will call the Derived
class.
class Base
{
virtual void Done(int code){};
void Execute();
}
void Base::Execute()
{
}
class Derived : Base
{
void Done(int code);
void Run();
}
Derived::Done(int code)
{
}
void Derived::Run()
{
Execute();
}