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
- easy javascript algorithm
- hackerrank javascript
- Object type casting
- string class in java
- hackerrank javascript solution
- 알고리즘
- substring()
- Javascript Algorithm
- C++
- easy algorithm
- javascript
- repeat()
- hackerrank
- hackerrank solution
- code refactoring
- java
- Collection Framework
- 프로그래머스 알고리즘문제
- ... in Javascript
- math.abs
- 프로그래머스
- HackerRank Algorithm
- rest parameter
- spring boot application
- algorithm
- equals()
- HashMap
- 프로그래머스 알고리즘
- math.max
- compareTo()
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함