T
Thomas
hi all,
i have 2 classes and a virtual function:
class BaseClass
{ public:
virtual void somefunction();
};
class DerivedClass : public BaseClass
{ public:
/*virtual*/ void somefunction();
};
This seems to work even when I drop the 'virtual' keyword in the derived
class. Does this make any difference? Or is the second 'virtual' in the
derived class obsolete?
Thanks,
Thomas
i have 2 classes and a virtual function:
class BaseClass
{ public:
virtual void somefunction();
};
class DerivedClass : public BaseClass
{ public:
/*virtual*/ void somefunction();
};
This seems to work even when I drop the 'virtual' keyword in the derived
class. Does this make any difference? Or is the second 'virtual' in the
derived class obsolete?
Thanks,
Thomas