OK, let's say I have an abstract base class BaseClass and a derived class Derived:
Is it necessary to redeclare each virtual function in the derived class, or will just the definition suffice? i.e. will the following work?
virtual void DoSomething() const = 0;
If I do have to redeclare it, will it make any difference whether the redeclaration is virtual or not? (i.e. is there any reason not to make it virtual, or will it end up virtual even if I don't declare it as such?)
class Derived: public BaseClass
Also, if I do something like this:
Do the constructors from both classes get called, or do I need to do everything in Derived's constructor that I had to do in BaseClass's?
BaseClass *abaseclass=new Derived;
Thanks in advance.