/* * http://sosal.tistory.com/ * made by so_Sal */ 객체지향 상속관련해서 포스팅을 한적이 없더라구요~ 복습할겸 끄적여봅니다 ㅎㅎ 아래는 x,y 좌표를 저장하는 객체를 만든 모습입니다. #include #include using namespace std; class point{ private: int x,y; public: point(int _x,int _y):x(_x),y(_y){}; int getX(){ return x; } int getY(){ return y; } }; int main(){ point a(3,5); printf("%d %d",a.getX(),a.getY()); return 0; } C++ 프로그래밍 경험이 있으신분들은 위 코드를 쉽게 이해하실거..