相关代码 |
|
/* 范例:17-4 */ #include class A { public: int b; void pp(){cout }; class B:public A { }; void main() { B obj1,obj2; cout cout obj1.pp(); cout obj2.pp(); getchar(); } 程序执行结果: 4 4 0065FE00 0065FE00 in class A 0065FDFC 0065FDFC in class A
相关资源 |
|