Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package cosmos.solarsystem;
- import cosmos.aquila.Altair;
- import cosmos.lyra.Vega;
- /**
- * Created by KSY on 2016-07-30.
- */
- public class D5_Solar {
- public static void main(String[] args) {
- Sun sun = new Sun();
- Vega vega = new Vega();
- Altair altair = new Altair();
- System.out.println(sun.getName());
- System.out.println(vega.getName());
- System.out.println(altair.getName());
- }
- }
- class Sun {
- public String getName() {
- return "태양계-태양";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement