Notice
Recent Posts
Recent Comments
Link
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

chapter09 : this 본문

JAVA

chapter09 : this

GAWON 2023. 5. 16. 18:30
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