공부/C++ 프로그래밍 13

[C++] 명품 C++ 프로그래밍 8장 OpenChallenge

상속 관계의 클래스 작성 #include #include using namespace std; class Product { int id, price; string description, productor; public: Product(int id = 0, string description = "", string productor = "", int price = 0) { this->id = id; this->description = description; this->productor = productor; this->price = price; } int getId() { return id; } string getDesc() { return description; } string getPro() { retu..