본문 바로가기

상속3

[혼공자] 상속 요약본 복습 https://shins99.tistory.com/91 [혼공자] 클래스 요약본 복습 https://shins99.tistory.com/90 [혼공자] 참조타입 요약본 복습 https://shins99.tistory.com/89 [혼공자] 조건문과 반복문 요약본 복습 https://shins99.tistory.com/88 [혼공자] 연산자 요약본 복습 https://shins99.tistory shins99.tistory.com 상속 - 현실에서 상속은 부모가 자식에게 재산(자산)을 물려주는 것 - 코딩에서 상속은 부모클래스가 자식클래스에게 속성/함수를 물려주는 것 l 상속 : 부모 클래스의 속성과 함수를 자식 클래스에서 사용할 수 있도록 함 l 함수(메소드) 재정의 : 부모 함수를 자식 클래스에서.. 2023. 10. 2.
[자바 기초] 상속 활용하기 복습 https://shins99.tistory.com/32 [JAVA] 상속 복습 https://shins99.tistory.com/25 [자바 기초] 배열 복습 https://shins99.tistory.com/23 [자바 기초] static 복습 https://shins99.tistory.com/21 [자바 기초] C R U D 의 개념 복습 https://shins99.tistory.com/20 [자바 기초] this shins99.tistory.com 💡 학습 목표 배웠던 내용 활용해보기 1. 상속 활용하기 2. 메서드 오버로딩에 활용 3. 오버라이드 활용 public class Unit { protected String name; protected int power; protected int .. 2023. 8. 8.
[자바 기초] 상속 복습 https://shins99.tistory.com/25 [자바 기초] 배열 복습 https://shins99.tistory.com/23 [자바 기초] static 복습 https://shins99.tistory.com/21 [자바 기초] C R U D 의 개념 복습 https://shins99.tistory.com/20 [자바 기초] this 키워드 복습 https://shins99.tistory.com/18 [자바 기초] shins99.tistory.com 상속 💡 학습 목표 1. 상속에 대핸 개념을 이해 하자. 2. 상속 extends 키워를 사용해서 문법을 완성해 보자. 1. 상속에 대핸 개념을 이해 하자. 기능적으로 더 큰 클래스는 자식 클래스 입니다. 상속을 구현하는 경우 ● 상위 클래스는.. 2023. 8. 7.