C++ not allow to inherit the class

1
2
3
class Sample final {

};