Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- vscode
- 완주하지 못한 선수
- 크롬북
- UE4
- 큰수 만들기
- 프로그래머스
- 단체사진찍기
- 개발자의 글쓰기
- LoadingPhase
- unreal config
- 주석쓰기
- crostini
- chromebook
- D2Coding
- 리눅스한글
- 개발자
- fcitx
- 전화번호 목록
- codeserver
- unrealengine
- Extensions
- 데비안한글
- code-server
- 숫자 야구
- 영어 끝말잇기
- SimpleConfig
- 에러 메시지 쓰기
- 숫자야구
- ELoadingPhase
- 알고리즘
Archives
- Today
- Total
목록C++ (1)
Space Panda

1. 상속 할것을 생각하고 만든 클래스의 소멸자는 반드시 가상 소멸자로 선언해야합니다 아래의 코드를 봅시다 #include class Car { public: Car(std::string name) { this->name = name; }; ~Car() { printf("Car Destructor \r\n"); }; std::string name; }; class Truck : public Car { public: Truck(std::string name, bool isRefrigeratorTruck) : Car(name) { this->isRefrigeratorTruck = isRefrigeratorTruck; }; ~Truck() { printf("Truck Destructor \r\n"); }; b..
C++
2019. 9. 24. 15:03