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
- java
- 코드트리조별과제
- 다익스트라
- 프록시
- 오버라이딩
- 테스트코드
- 스프링
- 의존관계
- 인터페이스
- 예외와 트랜잭션 커밋
- 서블릿
- equals()
- 티스토리챌린지
- 싱글톤
- 오블완
- 참조변수
- 스프링컨테이너
- 코딩테스트
- DI
- 김영한
- objecterror
- 코드트리
- html form
- http 메시지 컨버터
- 백준
- HttpServletResponse
- fielderror
- 추상클래스
Archives
- Today
- Total
목록Inner Class (1)
minOS
ch7-42 내부 클래스(inner class) 예시 class A { // B의 외부 클래스 class B { //A의 내부 클래스 } } 내부 클래스의 장점 - 내부 클래스에서 외부 클래스의 멤버들을 쉽게 접근할 수 있다. - 코드의 복잡성을 줄일 수 있다.(캡슐화) 실습 내부 클래스 사용 X) class A { int i = 100; B b = new B(); } class B{ void method(){ A a = new A(); System.out.println(a.i); } } class C{ B b = new B(); } public class Main { public static void main(String[] args) { B b = new B(); b.method(); } } 출력..
TIL/남궁성의 자바의 정석
2024. 2. 11. 17:28