| Lecture 5 - Slide 13 : 40|
What about prevention of derivation in C++?
In Java a class can be final
In C# a class can be sealed
Such means of expression has also been introduced in C++11: final
Illustration of how to prevent overriding a virtual function.
Illustration of how to prevent overriding all virtual functions.