일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- html code
- #2차원배열
- #JAVASCRIPT
- docker example
- #CallByAddress
- #bubbleSort
- html charset
- html plug-in
- #binary
- 토큰경제
- html id
- #3차원배열
- html youtube
- #android activity
- html5 new tag
- html multimedia
- border-box
- #다차원포인터
- mac terminal command
- hyperledger transaction
- #성적관리프로그램
- git flow
- relative path
- #자바상속#자바이즈어#is~a
- #C++ has~a
- html video
- html object
- #1차원배열
- #C++ 연산자함수오버로딩
- 하이퍼레저패브릭
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