Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. package cosmos.solarsystem;
  2.  
  3. import cosmos.aquila.Altair;
  4. import cosmos.lyra.Vega;
  5.  
  6. /**
  7. * Created by KSY on 2016-07-30.
  8. */
  9. public class D5_Solar {
  10.  
  11. public static void main(String[] args) {
  12. Sun sun = new Sun();
  13. Vega vega = new Vega();
  14. Altair altair = new Altair();
  15.  
  16. System.out.println(sun.getName());
  17. System.out.println(vega.getName());
  18. System.out.println(altair.getName());
  19. }
  20. }
  21.  
  22. class Sun {
  23. public String getName() {
  24. return "태양계-태양";
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement