일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 토큰경제
- mac terminal command
- html multimedia
- docker example
- html5 new tag
- #다차원포인터
- html charset
- #자바상속#자바이즈어#is~a
- hyperledger transaction
- html object
- #android activity
- #bubbleSort
- html code
- git flow
- #2차원배열
- #binary
- #1차원배열
- #C++ 연산자함수오버로딩
- 하이퍼레저패브릭
- relative path
- #C++ has~a
- #성적관리프로그램
- html id
- #CallByAddress
- html youtube
- html plug-in
- border-box
- #JAVASCRIPT
- #3차원배열
- html video
Archives
- Today
- Total
목록#자바인터페이스#interface (1)
A sentimental robot
Interface
Interface - 상수와 추상메소드로만 이루어져 있다. - 다중 상속이 가능하다. public interface Aa extends B { // 인터페이스끼리도 extends로 상속 가능, but 다중상속가능 final static int A = 10; // 상수니까 변수이름이 대문자이다. final은 생략가능, 상수는 선언과 동시에 초기화한다. abstract void disp(); // 추상메소드 abstract 생략가능 } public interface B { abstract void disp2(); } public class CC implements Aa, B { // 인터페이스를 상속받을 때는 implements 를 쓴다. 인터페이스는 다중상속이 가능하다. @Override public vo..
Java
2017. 12. 29. 11:22