selfdailycoding의 블로그

  • 홈
  • 태그
  • 방명록

2025/01/09 1

[JAVA] 풀스택 개발자 부트캠프 011일차 ① 상속성

상속성 inheritance- 부모 클래스로부터 속성 or 특성을 상속받는 것 - variable(변수) method(함수)를 물려 받는 것 - 다중 상속은 불가능하다 형식: class 부모클래스명{     부모변수     부모메소드 } class 자식클래스 extends 부모클래스명{     (부모변수)     (부모메소드)     자식변수     자식메소드public class MainClass { public static void main(String[] args) { Child child = new Child(); child.number = 123; child.name = "홍길동"; child.parent_method(); }}clas..

JAVA 프로그래밍 2025.01.09
이전
1
다음
더보기
프로필사진

selfdailycoding의 블로그

매일매일 성장 일기

  • 분류 전체보기 (62)
    • JAVA 프로그래밍 (51)
    • 데이터베이스 (11)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/01   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바