Created
March 31, 2018 08:40
-
-
Save ohjongsung/4b71279d7f60049092a164a963fc3088 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
AppleBox appleBox = new AppleBox(); | |
appleBox.store(new Melon()); // 컴파일오류발생 | |
MelonBox melonBox = new MelonBox(): | |
melonBox.store(new Apple()); // 컴파일오류발생 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment