JEVLOG

  • 홈
  • 태그
  • 방명록

polymorphism 1

가상 함수

객체 포인터의 참조 관계 객체 포인터 변수 객체의 주소 값을 저장하는 포인터 변수 Person * ptr = new Person(); A형 포인터 변수는 A객체 또는 A를 직접 혹은 간접적으로 상속하는 모든 객체를 가리킬 수 있다. class Person{}; class Student : public Person{}; class PartTimeStudent : public Student{}; Person * ptr1 = new Student(); // Person형 포인터 변수 ptr Person * ptr2 = new PartTimeStudent(); // Person형 포인터 변수 ptr Student * ptr3 = new PartTimeStudent(); // Student형 포인터 변수 ptr ..

Programming | 프로그래밍 언어/C++ 2023.01.16
이전
1
다음
더보기
프로필사진

JEVLOG

개발 블로그

  • 분류 전체보기 (34)
    • Algorithm | 알고리즘 (6)
    • DataStructure | 자료구조 (4)
    • OperatingSystem | 운영체제 (1)
    • Programming | 프로그래밍 언어 (16)
      • C++ (12)
      • EffectiveC++ (2)
      • EffectModernC++ (2)
    • Private (2)
      • Memoirs | 회고 (2)
    • UnrealEngine4 | 언리얼엔진4 (3)
    • DesignPattern | 디자인 패턴 (1)
    • ETC | 기타 (1)

Tag

datastructure, Memoirs, Deduction, explicit, 복사생성자, UnrealEngine4, const, BOJ, algorithm, acmicpc, CPP, protected, EffectiveModernCpp, ModernCpp, TypeDeduction, N과M, 백준, C++, 자료구조, UE4,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

Archives

Copyright © Kakao Corp. All rights reserved.

  • Github
  • LinkedIn

티스토리툴바