field (멤버변수, 인스턴스 변수)
클래스 속성
public class Num{
// 필드: 객체의 상태(state)를 나타냄
private int num;
}
https://standout.tistory.com/100
클래스와 인터페이스의 구성
앞서 클래스와 인터페이스의 차이를 간단히 확인해봤다. 이제 클래스와 인터페이스의 구성하는 각각의 요소를 확인해보자. https://standout.tistory.com/85 JAVA Interface, 인터페이스 Class와의 차이 인터
standout.tistory.com
'JAVA' 카테고리의 다른 글
생성자가 두개, Overloading (0) | 2023.03.18 |
---|---|
true인지 false인지, equals() (0) | 2023.03.18 |
여러 인스턴스에서 공유하다, static (0) | 2023.03.18 |
private에 접근하기 (0) | 2023.03.18 |
요일출력하기, Calendar (0) | 2023.03.18 |