개발일지

  • 홈
  • 태그
  • 방명록
  • 글쓰기
  • 설정

super 1

참조변수 super

참조변수 super super는 참조변수 this와 비슷하게 작동한다. 1. 조상의 생성자를 호출하는 경우 super() 2. 자손 클래스에서 조상 클래스로부터 상속받은 멤버를 참조하는 경우 super 하나씩 살펴보자 1. 조상의 생성자를 호출하는 super() class Point{ int x; int y; public Point(int x, int y) { this.x = x; this.y = y; } } class Point3D extends Point { int z; public Point3D(int x, int y, int z) { super(x, y); this.z = z; } } Point3D 클래스가 Point 클래스를 상속받은 상황이다. 생성자는 상속되지 않으므로 Point3D 클래스의 ..

Java/객체지향 2022.12.23
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (214)
    • 개발 (28)
      • CS (11)
      • 이것저것 (12)
    • 항해99 (118)
      • TIL | WIL (112)
      • 웹 개발 종합반 (6)
    • Java (68)
      • 개념 (27)
      • 객체지향 (19)
      • Spring (15)
      • 디자인 패턴 (7)

Tag

3계층, 오토박싱, jpa, this, prototye, 참조변수, 프로그래머스, SpringMVC, 네트워크, iterator, til, 자바의 정석, 객체지향, Github action, 추상클래스, 객체입력, CircuitBreaker, Wil, 내부 클래스, 2계층,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바