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