자바 클래스
-
Java - ClassJava 2018. 1. 16. 12:34
public class Main { public static void main(String[] args) { // Student Class를 복사해서 std라는 변수에 담는다. Student std = new Student(); Student std2 = new Student(); System.out.println(std); System.out.println(std2); } } // std과 std2 클래스는 다르다 public static void main(String[] args) { String a =""; String b = ""; Robot bot = new Robot(a, b); System.out.println(bot.name); System.out.println(bot.goal); } pu..