developer

고정 헤더 영역

글 제목

메뉴 레이어

developer

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (251)
    • 한양대공학대학원컴퓨터공학과 (1)
    • 통신프로토콜 (2)
    • eclipse (4)
    • spring (37)
      • spring 게시판 만들기 (6)
      • spring 로그인 처리 (2)
      • spring boot (9)
      • spring cloud config (0)
      • spring cloud eureka (0)
    • Git (19)
    • 체당금신청 (5)
    • Mybatis (8)
    • 전세금돌려받기 (2)
    • 아이폰 개발 ( i-os ) (5)
    • 주식 (5)
      • 일일매매동향 (5)
    • Vue.js (12)
      • Vue.js 동영상강좌 (4)
    • 자바강좌 (67)
      • 리팩토링 (13)
    • 취미 (21)
      • 관심기사 (8)
      • 영화 (2)
      • 여행 (9)
      • 마케팅 (2)
    • Database (25)
      • Oracle (10)
    • C언어강좌 (1)
    • 자바스크립트 (18)
      • 자바스크립트 디자인패턴 (2)
      • jquery (9)
    • 파이썬 (5)
    • 정보관리기술사 (4)

검색 레이어

developer

검색 영역

컨텐츠 검색

상속

  • 파이썬 상속 개념

    2023.04.14 by somiyuralove

  • 상속을 위임으로 치환 리팩토링 ( Replace Inheritance With Delegation )

    2020.02.16 by somiyuralove

파이썬 상속 개념

Python Inheritance Inheritance allows us to define a class that inherits all the methods and properties from another class. Parent class is the class being inherited from, also called base class. Child class is the class that inherits from another class, also called derived class. Create a Parent Class Any class can be a parent class, so the syntax is the same as creating any other class: Create..

파이썬 2023. 4. 14. 20:02

상속을 위임으로 치환 리팩토링 ( Replace Inheritance With Delegation )

* 상속을 위임으로 치환 리팩토링 ( Replace Inheritance With Delegation ) * 상속 - 상위 클래스에서 선언한 필드와 메서드를 하위 클래스에서 이용할 수 있음. 이를 부모가 자식에게 물려주는(inherit)것에 비유해서 상속(inheritance)이라고 부름. 많은 객체지향 프로그램에서 상속 기능이 있음. * 위임 - 다른 인스턴스의 메서드를 호출해서 처리하는것을 처리를 위임한다(delegate)라고 표현. - 위임(delegation)이란 '맡긴다'는 의미임. * 상속과 위임의 비교 - 상속은 클래스 사이의 관계이고, 위임은 인스턴스 사이의 관계, 이는 상위 클래스에서 상속받을 메서드나 필드는 인스턴스마다 정할 순 없지만, 작업을 위탁할 곳은 인스턴스마다 정할 수 있음 -..

자바강좌/리팩토링 2020. 2. 16. 23:25

추가 정보

인기글

최신글

페이징

이전
1
다음
TISTORY
developer © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바