Hacker News new | ask | show | jobs
by sudosysgen 820 days ago
https://en.cppreference.com/w/cpp/language/final

Final in C++ indicates that the function/class can no longer be overridden in further child classes. This enables devirtualization as the compiler can then know the function pointer will not change, if it can infer the type at compile time.