Method Overloading Same named method and different number of parameters. 예제1 - 숫자들의 sum 구하기 안 좋은 예 public static int sumTwoNum(int a, int b) { return a + b; } public static int sumThreeNum(int a, int b, int c) { return a + b + c; } public static int sumFourNum(int a, int b, int c, int d) { return a + b + c + d; } 메소드 이름이 다 다르기 때문에 복잡하고 기억하기 어렵다. Overloading public static int sum(int a, int b) { ..
Prototype 자바스크립트에는 Prototype Link와 Prototype Object가 존재한다. 이를 통들어 Prototype이라고 한다. Prototype Object function Dog() {}; // 함수 var dogObj = new Dog(); // 함수로 객체를 생성 var obj = {}; // var obj = new Object(); 객체는 언제나 함수로 생성된다. 함수가 정의되면 Constructor 자격이 생긴다 Constructor 자격이 있어야만 new operator를 통해 객체를 만들어낼 수 있다. new는 함수만 쓸 수 있다. (즉 함수 -> Constructor -> new를 통해 객체 생성 가능) 함수가 정의되면 Prototype Object도 같이 생긴다.생..
To-DofreeCodeCamp - 프로토타입 복습- functional Programming 5문제 이상Udemy Java- 나머지 코딩 연습- control flow 들어가기Udemy JS- Command Line까지 Today was...학교 가서 공부했더니 더웠다Method Overloading을 배웠다!js 강의는 언제 듣지....... Do-Tomorrow우아한테크코스 온라인 데모테스트 해보기Java Control Flow freeCodeCamp Functional Programming 끝내기
Code Exercise package com.Hazel; public class Main { public static void main(String[] args) { int score = 1500; int scorePosition = calculateHighScorePosition(score); displayHighScorePosition("Hazel", scorePosition); score = 900; scorePosition = calculateHighScorePosition(score); displayHighScorePosition("Ryan", scorePosition); score = 400; scorePosition = calculateHighScorePosition(score); disp..
Refactor Global Variables Out of Function1) Don't alter a variable or object - create new variables and objects and return them if need be from a function. 2) Declare function arguments - any computation inside a function depends only on the arguments, and not on any global object or variable. So far, we have seen two distinct principles for functional programming: Use the map Method to Extract ..
문제 You will be provided with an initial array (the first argument in the destroyer function), followed by one or more arguments. Remove all elements from the initial array that are of the same value as these arguments. 예시 destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]. destroyer([1, 2, 3, 5, 1, 2, 3], 2, 3) should return [1, 5, 1]. destroyer([3, 5, 1, 2, 2], 2, 3, 5) should return [1]...
To-DoUdemy JAVA 강좌 듣기- 29. More On Methods And a Challenge- 30. Method Challenge- 31. Diffmerge Tool Intro- 32. Install DiffMerge- 33. Using DiffMerge- 34. Coding Exercise- 35. Coding Exercise ex part 1- 36. Coding Exercise ex part 2- 37. Coding Exercise ex part 3- 38. Method overloading - 39. Method overloading recap- 40. Seconds and Minute Challenge- 41. Bounus Challenge Sol - 코딩연습 1 ~ 11코딩연습 ..
- Total
- Today
- Yesterday
- 자바
- linkedlist
- rxjs
- Prefix Sums
- 깃
- 제네릭스
- SQL
- c언어
- Conflict
- Session
- this
- package.json
- oracle
- getter
- react
- 리덕스
- Data Structure
- CSS
- useEffect
- youtube data api
- 개발 공부
- Redux
- 포인터 변수
- 인스턴스
- Java
- JavaScript
- jQuery
- til
- 알고리즘
- GIT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |