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

prog1.cc
Illustration of how to prevent overriding a virtual function.
prog2.cc
Illustration of how to prevent overriding all virtual functions.