[C++ 소스] 집합 관계(Aggregation Relation), 필통과 연필 //Pencil.h#pragma once#include #include using namespace std;class Pencil{ string company; int price; public: Pencil(string company,int price); string GetCompany()const; int GetPrice()const; }; //Pencil.cpp#include "Pencil.h" Pencil::Pencil(string company,int price){ this->company = company; this->price = price;}string Pencil::GetCompany()const{ return..