Skip to content

Commit a45fa66

Browse files
Update final.cpp
1 parent 0bb4ea3 commit a45fa66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

final/final.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
class Foo final;
1+
class Foo final {
2+
};
23

34
// class Bar : public Foo { }; error! can't inherit from final function
45

0 commit comments

Comments
 (0)