Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The final specifier can be applied to methods and classes. When a method is marked as final, it cannot be overridden in derived classes. When a class is marked as final, it cannot be derived from. Note that final is not a reserved keyword, meaning that you can create variables and types with the name final. Although, in the case of types, that may lead to some confusion. Compiler Explorer link: https://lnkd.in/e_tJS_MZ #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories