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