본문 바로가기 메뉴 바로가기

개발 정리 모음집

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발 정리 모음집

검색하기 폼
  • 분류 전체보기 (56)
    • spring (4)
    • springboot (8)
    • cs (2)
    • java (18)
    • 오곡(Ogok) (2)
    • 버드북(birdbook-backend) (1)
    • 소소한 정리 (5)
    • infra & cloud (1)
    • 알고리즘 (8)
    • python (1)
    • 티미 (4)
    • 우테코 프리코스 (0)
    • c++ (2)
  • 방명록

메모리구조 (1)
상속과 메모리 구조

Guitar 클래스가 Instrument 클래스를 상속받는 상황을 가정해보자. public class Instrument { public void play() { System.out.println("악기를 연주합니다."); } } public class Guitar extends Instrument { @Override public void play() { System.out.println("기타를 연주합니다!"); } } 그리고 Guitar 객체를 생성한다. public class InheritanceMain { public static void main(String[] args) { Guitar guitar = new Guitar(); guitar.play(); } } 이 때 Guitar 객체가 참조..

java 2023. 12. 21. 22:43
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 깃허브
TAG
  • @Value
  • springboot
  • JPA
  • uncheckedException
  • 이진탐색
  • @Spring
  • 메인메소드
  • id생성전략
  • lowerBound
  • StreamAPI
  • Optional
  • 생성자
  • 유효성 검사
  • NPE
  • 백준
  • 일급컬렉션
  • null
  • N+1문제
  • upperBound
  • Spring
  • ddl-auto
  • @ConfigurationProperties
  • 자바
  • 티스토리챌린지
  • 오블완
  • Thymeleaf
  • checkedException
  • Java
  • 동등성
  • @NoArgsConstructor
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바