LINUX.ORG.RU

История изменений

Исправление alysnix, (текущая версия) :

Мы про C++ говорим, а не про Java.

вы отстали от с++ на 9 лет минимум

https://en.cppreference.com/w/cpp/language/final

final specifier (since C++11)

Specifies that a virtual function cannot be overridden in a derived class or that a class cannot be inherited from. Syntax

When applied to a member function, the identifier final appears immediately after the declarator in the syntax of a member function declaration or a member function definition inside a class definition.

When applied to a class, the identifier final appears at the beginning of the class definition, immediately after the name of the class.

Исходная версия alysnix, :

Мы про C++ говорим, а не про Java. вы отстали от с++ на 9 лет минимум

https://en.cppreference.com/w/cpp/language/final

final specifier (since C++11)

Specifies that a virtual function cannot be overridden in a derived class or that a class cannot be inherited from. Syntax

When applied to a member function, the identifier final appears immediately after the declarator in the syntax of a member function declaration or a member function definition inside a class definition.

When applied to a class, the identifier final appears at the beginning of the class definition, immediately after the name of the class.