class, Object, Instance의 상호관계
3개 모두 비슷한 개념으로, 모두 객체를 나타내는 용어 class - 객체를 모델링 하는 도구(설계도) Object - 클래스를 통해서 선언되는 변수 Instance - 객체생성에 의해 메모리(Heap Memory)에 만들어진 객체 public class ClassDbIN { public static void main(String[] args) { Student st1; Student st2; Student st3; st1 = new Student("na","a",12,"32",12,"010"); st2 = new Student("nada","d",32,"30",32,"011"); st3 = new Student("naa","c",52,"31",14,"012"); System.out.println(st1..
2023. 11. 29.