(Udemy) 05. 객체 지향 프로그래밍 입문
1) 용어 class Planet{ name, location, distanceFromSun // data/state/fields revolve(), rotate() //actions/behaviot/methods } Planet earth = new Planet(); Planet venus = new Planet(); (1) 클래스란? : 개체에 포함된 데이터와 수행할 수 있는 작업을 지정할 수 있습니다. :ex) 사람이 클래스라면 객체는 클래스의 인스턴스입니다. : Person 클래스는 사람 및 해당 클래스의 각 개체와 해당 클래스의 각 인스턴스와 … Read more