Skip to content

Commit 4c6f81a

Browse files
authored
add some errors in final-and-override-1 (#33)
- https://github.com/mcpp-community/OpenOrg/issues/1
1 parent c364252 commit 4c6f81a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dslings/cpp11/02-final-and-override-1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
#include <string>
2222

2323
struct A {
24-
virtual int func1() {
24+
virtual int func1() final {
2525
return 1;
2626
}
2727
int func2() { return 2; }
2828
};
2929

30-
struct B : A {
30+
struct B final : A {
3131

3232
int func1() {
3333
return 3;

0 commit comments

Comments
 (0)