You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Capping an individual virtual function with final is error-prone as final can easily be overlooked when defining/overriding a set of functions. Fortunately, the compiler catches such mistakes: You cannot re-declare/re-open a final member in a derived class.
I don't consider this as error-prone. Sure, it generates a compiler error, but that's not the common sense of error-prone.
If you consider this error-prone, let me make this statement as a counter-argument:
The definition of an int is error-prone as quotation marks can easily be overlooked when defining an int. Fortunately, the compiler catches such mistakes: you can't assign a string to it.
Proposal: simply remove the note. Using final on virtual methods works as in Java or C#. It's just normal to get a compiler error.
The text was updated successfully, but these errors were encountered:
C.139 says
I don't consider this as error-prone. Sure, it generates a compiler error, but that's not the common sense of error-prone.
If you consider this error-prone, let me make this statement as a counter-argument:
Proposal: simply remove the note. Using
final
on virtual methods works as in Java or C#. It's just normal to get a compiler error.The text was updated successfully, but these errors were encountered: