![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FPt2AF%2Fbtr3J3tGnZN%2FqnlZgn7AMwVTXhNOSk0qSk%2Fimg.png)
Back End/Java
[Java] 객체 지향 4, this
this 참조 변수 this 참조 변수는 같은 이름을 사용할 때 자기 자신을 구분하기 위해 사용하는 변수이다. 즉, 멤버변수와 지역변수를 구별하기 위해 멤버변수에 this 를 붙여 구별하는 것이다. this.name : 멤버변수 class Member{ String name; int num; Member (String name, int num){ this.name = name; this.num = num; }