DrEvil
FCRI Associate!
- Reaction score
- 111
Like I don't know if I'm just being stupid or just having a mind block...
But I have this function in a separate file: fileB.cpp , the function is called 'doSomething' ( very unoriginal.... I blame WC3 for the func name...)
I want the function to do nothing on its own, but have it override-able in another file:
fileB.cpp:
fileA.cpp:
Like I tried a few things... Google'd it a few times... (Maybe I'm just blind...) Pulled a few hairs out trying to accomplish basic code
Can anyone put me out of my misery and help me, thanks.
Edit: The functions are just standalone functions, not in a class.
But I have this function in a separate file: fileB.cpp , the function is called 'doSomething' ( very unoriginal.... I blame WC3 for the func name...)
I want the function to do nothing on its own, but have it override-able in another file:
fileB.cpp:
Code:
void doSomething(vars){ // the original function which is located in fileB
// do nothing....
}
Code:
(override)void doSomething(vars){// override the function
doSomethingElse();
// Actually doing something!
}
Like I tried a few things... Google'd it a few times... (Maybe I'm just blind...) Pulled a few hairs out trying to accomplish basic code
Can anyone put me out of my misery and help me, thanks.
Edit: The functions are just standalone functions, not in a class.