C++ 객체 예제 * 출처 : 열혈강의 C++ 언어 본색 (P.388) //IntSample.h #pragma once #ifndef _INTSAMPLE_H_ #define _INTSAMPLE_H_ #include using namespace std; class IntSample { public: void ShowScore(); void setScore(const int s); int getScore(); private: int Score; }; #else #endif //IntSample.cpp #include "IntSample.h" void IntSample::ShowScore() { cout