250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- objecterror
- 코드트리조별과제
- 프록시
- 백준
- 프로그래머스
- 코딩테스트
- 의존관계
- 추상클래스
- http 메시지 컨버터
- 예외와 트랜잭션 커밋
- HttpServletResponse
- DI
- 오버라이딩
- 스프링컨테이너
- 티스토리챌린지
- 코드트리
- fielderror
- 싱글톤
- equals()
- 참조변수
- html form
- 인터페이스
- 다익스트라
- 스프링
- 김영한
- @configuration
- java
- 테스트코드
- 서블릿
- 오블완
Archives
- Today
- Total
목록super() (1)
minOS

ch7-10 참조변수 super - 객체 자신을 가리키는 참조변수, 인스턴스 메서드(생성자) 내에서만 존재 (static 메서드 내에 사용불가능) - 조상의 멤버를 자신의 멤버와 구별할 때 사용 class Parent { int x = 10; //super.x } class Child extends Parent{ int x =20; //this.x void method(){ System.out.println("x:"+x); System.out.println("this.x:"+this.x); System.out.println("super.x:"+super.x); } } public class Main { public static void main(String[] args) { Child child = ne..
TIL/남궁성의 자바의 정석
2023. 11. 27. 23:48