WON.dev
chapter09 : this 본문
1.1 this
- 생성된 객체(인스턴스) 자신의 주소(참조, 레퍼런스)
- 생성된 객체(인스턴스)가 자기 자신을 호출하는 방식
- 클래스 구성 요소에 this 활용
필드 : this.필드
생성자 : this() - 생성자(constructor) 내부에서만 사용가능!
'JAVA' 카테고리의 다른 글
chapter13 : inheritance_annotation (0) | 2023.05.16 |
---|---|
chapter10 : static final (0) | 2023.05.16 |
chapter08 : constructor (0) | 2023.05.16 |
chapter07 : method (1) | 2023.05.16 |
chapter06 : OOP (0) | 2023.05.16 |