The
static modifier is not in any way redundant (as per my example). And objects are not classes. I will see if I have the time to write another example. Right now I am stuck at regexpr
Also note the
virtual modifier is with classes only allowed for root classes. In any derived class the modifier is
override.
As opposed to objects, that do not know about override, only about virtual.
The reason that you can declare a method
virtual and
sealed is both a parser issue, an exact syntax issue and a language issue: virtual implies a VMT (virtual method table). There are cases where you want to access the VMT directly, even if the method is sealed, so no longer can be modified. This is specifically important when using inline assembler code.