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 |
Tags
- std::ostream
- conversion constructor
- std::endl
- diamond inheritance
- virtual function
- 더 지니어스 양면포커
- virtual function table
- c++ basic practice
- virtual inheritance
- this call
- delete function
- suffix return type
- virtual destructor
- operator overloading
- base from member
- constructor
- placement new
- increment operator
- vector capacity
- pointer to member data
- vector size
- discord bot
- std::cout
- member function pointer
- new&delete
- dynamic_cast
- C++
- std::vector
- c++ multi chatting room
- return by reference
Archives
- Today
- Total
목록derived class (1)
I'm FanJae.

※ 본 포스트는 코드누리 C++ Basic 강의 내용을 보고 정리한 포스트입니다. 1. Inhertance#include class Student{ std::string name; int age; int id;};class Professor{ std::string name; int age; int major;};int main(){ Student s; Professor p;}- 학사 관리 프로그램을 만들고 있는 상태에서, Student, Professor 등 필요한 클래스를 설계중이다.- 여기서 Student, Professor 등이 가지는 공통된 속성(name,age)이 있다.- 이를 매번 적어주기 보단 공통된 것으로 묶어지면 훨씬 더 관리가 용이하다. cla..
C++/Basic
2024. 8. 20. 22:03