• Skip to primary navigation
  • Skip to content
  • Skip to footer
Welcome to the development world of chp Welcome to the development world of chp
  • categories
  • tags
    chp

    chp

    99점이 100점이 되기 위해 일을 더하는 개발자

    • South Korea
    • Website
    • GitHub

    [Dart] 상속

    Updated: June 04, 2024

    less than 1 minute read

    개요

    • extends 사용


    예제

    • 코드
      • class Base {
          void func01() {
            print(1);
          }
               
          void func02() {
            print(2);
          }
        }
               
        class Derived extends Base {
          @override
          void func02() {
            print(3);
          }
        }
               
        void main() {
          Derived derived = Derived();
          derived.func01();
          derived.func02();
        }
        
    • 실행 결과
      • 1
        3
        

    Tags: Dart, inheritance, programming-language

    Categories: Dart, programming-language

    Updated: June 4, 2024

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    [Go] unique package

    less than 1 minute read

    October 09 2024

    개요 go1.23.0부터 사용 가능 Documentation 비교 가능한 값을 표준화(interning, hash-consing)하기 위한 기능을 제공 type Handle[T comparable] struct T 유형의 일부 값에 대한 전역적으...

    [Go] maps package

    2 minute read

    October 08 2024

    개요 Documentation 모든 유형의 map에 유용한 다양한 함수를 정의 All Clone Collect Copy DeleteFunc Equal EqualFunc Inser...

    [Go] slices package

    8 minute read

    October 07 2024

    개요 Documentation 모든 유형의 슬라이스에 유용한 다양한 함수를 정의 All AppendSeq Backward BinarySearch BinarySearchFunc Chunk C...

    [cloud native][database] CloudNativePG

    4 minute read

    October 05 2024

    개요 사이트/GitHub 모든 Kubernetes 클러스터에서 PostgreSQL 워크로드를 관리하도록 설계된 오픈소스 오퍼레이터 분산 토폴로지 기능 덕분에 프라이빗, 퍼블릭, 하이브리드 및 멀티클라우드 환경에서 배포를 지원 선언적 구성 및 불변 인프라와 같은 De...

    • Follow:
    • GitHub
    • Feed
    © 2025 chp. Powered by Jekyll & Minimal Mistakes.