摘要:
class MyClass { public: virtual int getNumber() { return m; } virtual void setnumber(int number) { m = number; } private: int m; }; 这里实例化类大小占8个字节 int* 阅读全文
摘要:
#include <iostream> class MyClass { public: MyClass(); ~MyClass(); int m; char n; int getn(MyClass test) { return test.m + test.n; } int getm() { retu 阅读全文