If there was a base class DeriveMe that had a function virtual void DoSomething(int)and a class that inherits DeriveMe, called DerivedThat that had a function void DoSomething(SomeEnum)..., DerivedThat overrides the base class DoSomething, because enums compute ints at compile time in C ++?
I could try this by making DoSomething pure virtual and compiling / running it to see if it works, but this is my first question with stackoverflow, so I would just ask for it.
source
share