TIL
TIL_031
Mon Groy
2024. 6. 3. 21:04
https://mongroy.tistory.com/84
코드카타
자연수 뒤집어 배열 만들기public int[] solution(long n) { long firstN = n; int length = 0; while (n > 0) { n = n/10; length++;
mongroy.tistory.com
https://mongroy.tistory.com/83
다형성 캐스팅
흔히 부모와 자식의 상속이라고 표현하기 때문에나 또한 Parent(부모) 와 Childe(자식) 이라고 표현하겠다 Parent 가 Child 에게 extend 해 준다Parent 클래스는 Child 클래스에 비해 추상적이다Child 클래스
mongroy.tistory.com