Anonymous class in Java
1. Anonymous class has no name so, It allows a base class to implement without a name.2. It is often used for overriding the methods of a class or interface. 3. It can be used only once. Person p = new Person(); // semi-colon 을 지우고 중괄호를 열어서 코드를 시작해준다. public void greeting() // greeting method를 overriding해준다. // overriding은 subclass에서만 사용가능하기에 p가 person class의 자식클래스에서 왔다는 것을 알수있다.// 이곳에서는 Person의..
JAVA
2019. 2. 20. 07:27
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Javascript Algorithm
- repeat()
- string class in java
- 프로그래머스
- hackerrank javascript
- HashMap
- easy javascript algorithm
- ... in Javascript
- hackerrank
- hackerrank javascript solution
- algorithm
- javascript
- java
- math.max
- C++
- substring()
- compareTo()
- equals()
- easy algorithm
- hackerrank solution
- HackerRank Algorithm
- 프로그래머스 알고리즘문제
- code refactoring
- 프로그래머스 알고리즘
- spring boot application
- rest parameter
- math.abs
- Collection Framework
- Object type casting
- 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함