Created
December 10, 2015 13:02
-
-
Save Wooking0310/3869ec98559c611e9b34 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
package cosmos.solarsystem; | |
import cosmos.cygnus.*; | |
/** | |
* Created by Wook on 2015-12-10. | |
*/ | |
public class D5_Solar { | |
public static void main(String[] args) { | |
Sun sun = new Sun(); | |
Vega vega = new Vega(); | |
Denev denev = new Denev(); | |
System.out.println(sun.getName()); | |
System.out.println(vega.getName()); | |
System.out.println(denev.getName()); | |
} | |
} | |
class Sun { | |
public String getName() { | |
return "태양"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment