WON.dev
chapter09_this 본문
1.1 this
- 생성된 객체(인스턴스) 자신의 주소(참조, 레퍼런스)
- 생성된 객체(인스턴스)가 자기 자신을 호출하는 방식
- 클래스 구성 요소에 this 활용
필드 : this.필드
생성자 : this() - 생성자(constructor) 내부에서만 사용가능!
'JAVA > chapter01_JAVA_개념정리' 카테고리의 다른 글
chapter13_inheritance_annotation (0) | 2023.05.31 |
---|---|
chapter10_static final (0) | 2023.05.31 |
chapter08_constructor (0) | 2023.05.31 |
chapter07_method (0) | 2023.05.31 |
chapter06_OOP (0) | 2023.05.31 |