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 |
Tags
- 파이썬
- bit manipulation
- 코테
- hash table
- Math
- Counting
- Number Theory
- Stack
- geometry
- sorting
- dynamic programming
- SQL
- 구현
- two pointers
- string
- implement
- Binary Tree
- Method
- greedy
- database
- simulation
- Tree
- Class
- array
- 자바
- Data Structure
- Matrix
- Binary Search
- 코딩테스트
- java
Archives
- Today
- Total
목록default (1)
코린이의 소소한 공부노트

인터페이스는 1. 추상 메서드의 집합으로, 2. 부수적으로 상수, 디폴트 메서드, 스태틱 메서드를 선언할 수 있다.(jdk 1.8부터 적용) interface A { void method1(); void method2(); } class B implements A{ public void method1() { } public void method2() { } } abstract class C implements A{ public void method2() { } } - 어떤 클래스(B)가 인터페이스(A)를 구현할 경우, A에 선언된 모든 추상 메서드를 구현해야 한다. 만약 모든 메서드를 구현하지 않는다고 하면 추상 클래스(C)로 만들어야 한다. - 이 상태에서 인터페이스(A)에 새로운 추상 메서드를 추가하..
Java
2022. 5. 15. 13:11