Created
November 18, 2011 06:01
-
-
Save munro/1375735 to your computer and use it in GitHub Desktop.
Why not?
This file contains 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
class FooA { | |
public: | |
int a; | |
} | |
class FooB : public FooA { | |
public: | |
int b; | |
} | |
class BarA { | |
public: | |
FooA *hello; | |
} | |
class BarB : public BarA { | |
public: | |
FooB *hello; // Why can't I do this? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment