this

    🎁 this, super 그리고 오버라이딩(Overriding) 개념잡자

    this vs super 🟣 필드에서의 this와 super 필드에서의 this과 super는 말 그대로 해당 레퍼런스가 가리키는 인스턴스의 클래스를 지칭한다. A4 obj = new A4(); obj.name // A 클래스의 name obj.tel // A3 클래스의 tel obj.age // A4 클래스의 age obj.print(); A4.print(): => this.name(A), super.name(A) => this.age(40), super.age(30) => this.tel(A3: 010-1111-2222), super.tel(A3: 010-1111-2222) => this.working(false), super.working(true) ---------------------------..