Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- CSS
- Class
- github
- function
- AI
- Algorithm
- computer
- DB
- mysql
- react
- Rag
- Pipelining
- openai
- python
- javascript
- Java
- DS
- XML
- web
- system
- data structure
- MIPS
- control
- Linux
- instruction
- DATAPATH
- for
- php
- architecture
- html
Archives
- Today
- Total
목록Overloading (1)
YYYEJI
오버로딩(Overloading)이란? 동일 클래스(class)에서 동일한 이름의 메소드(method)를 여러 개 정의할 수 있음을 의미합니다. 물론 조건이 존재합니다. 매개변수(parameter)의 개수나 타입이 달라야 합니다. (Different signature) 예제를 살펴봅시다. public class main { public static void main(String[] args) { int n1 = 2; int n2 = 100; double f1 = 2.0; double f2 = 100.0; String s1 = "Hello "; String s2 = "World!"; int result_1 = adder(n1, n2); double result_2 = adder(f1, f2); String ..
Java
2022. 12. 27. 01:56