Created
September 7, 2017 10:42
-
-
Save njlr/01ae962f6d78ccc47fca3d1603f17ff3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct A { | |
| virtual std::string what() { | |
| return "A"; | |
| } | |
| }; | |
| struct B : public A { | |
| std::string what() override { | |
| return "B"; | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment