Skip to content

Commit

Permalink
[faq] typo: Base -> B
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Mar 14, 2024
1 parent 46b8700 commit f1885fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions faq/virtual_function_invocation_explain/exercise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class A {
}
};

class Base : public A {
class B : public A {
public:
void fun3() override {
std::cout << "B::fun3 " << '\n';
Expand All @@ -32,8 +32,8 @@ class Base : public A {

int main() {
A a;
Base b;
B b;
a.fun1();
b.fun1();
return 0;
}
}

0 comments on commit f1885fe

Please sign in to comment.