Created
February 6, 2015 14:10
-
-
Save onqtam/31d3adb28551be300c54 to your computer and use it in GitHub Desktop.
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 FirstBase { | |
int firstBaseData; | |
}; | |
class SecondBase { | |
public: | |
void Method() | |
{ | |
if( this == 0 ) { | |
printf( "this == 0"); | |
} else { | |
printf( "this != 0 (value: %p)", this ); | |
} | |
} | |
}; | |
class Composed1 : public FirstBase, public SecondBase { | |
}; | |
int main() | |
{ | |
Composed1* object = 0; | |
object->Method(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment