객체 포인터 변수란, 객체의 주소 값을 저장하는 포인터 변수이다. 포인터 변수 선언과 객체 참조 방법 class Person { }; class Student : public Person { }; int main() { Person* ptr; ptr = new Person(); } 그런데 Person형 포인터느느 Person 객체뿐만 아니라, Person을 상속하는 유도 클래스( 즉, 자식 클래스) 또한 가리킬 수 있다. class Person { }; class Student : public Person { }; int main() { Person* ptr; ptr = new Student(); } 그리고 Student 클래스를 부모 클래스로 둔 ParttimeStudent 클래스가 있다고 하고 그 클..