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
- 깃 명령어
- Java
- static메서드
- 싱클톤패턴
- 이클립스 오라클 연동
- AOP란?
- 리스트 모달창
- 스프링 모달창
- spring annotation
- 템플릿
- 다중 모달창
- static 예제
- 다운캐스팅
- SUB Query
- 상속
- order by
- downcasting
- 객체협력
- GROUP BY
- static
- 형변환
- oracle 연동
- IP
- singleton
- 오라클 비교연산자
- 사용자 데이터그램 프로토콜
- 모달창 여러개
- react
- 추상 메서드
- Servlet 맵핑
Archives
- Today
- Total
목록제네릭 (1)
모든지 기록하자!
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/meeTZ/btq5naEjcw7/ghALvntT2evKJ0p2Yswkck/img.png)
제네릭이란? 어떤 값이 하나의 참조 자료형이 아닌 여러 참조 자료형을 사용할 수 있도록 프로그래밍하는 것을 제네릭(generic) 프로그래밍이라고 한다. 제네릭 프로그램은 참조 자료형이 변환될 때 검증을 컴파일러가 하기 때문에 안정적이다. 3D 프린터 예제로 제네릭에 대해 알아보자 public class TreeDPrinter{ private Powder material; // 재료가 파우더일 때 public Powder getMaterial() { return material; } public void setMaterial(Powder material) { this.material = material; } 플라스틱 액체를 재료로 사용하는 프린터를 구현해 보자 public class TreeDPrinte..
Java
2021. 5. 20. 23:18