Skip to content

Commit 96f54fa

Browse files
Update final.cpp
1 parent dce3c81 commit 96f54fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

final/final.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
class Foo final {
1+
class Foo final;
22

3-
};
4-
5-
// class Bar : public Foo { }; error!
3+
// class Bar : public Foo { }; error! can't inherit from final function
64

75
int main()
86
{

0 commit comments

Comments
 (0)