Created
March 31, 2018 08:34
-
-
Save ohjongsung/384f7d4b8765cfac9f49250489892148 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
class AppleBox { | |
Apple item; | |
public void store(Apple item) { | |
this.item = item; | |
} | |
public Apple getItem() { | |
return item; | |
} | |
} | |
class MelonBox { | |
Melon item; | |
public void store(Melon item) { | |
this.item = item; | |
} | |
public Melon getItem() { | |
return item; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment