The class test
{
Int a1=1;
Int a2;
Public:
Void (b);
Void (c);
};
Int main ()
{
The test * aa=new test;
Cout & lt;return 0;
}
Excuse me class or object, sizeof size contains data members only, does not contain a member function?
Which is in a class or object, don't even contains a member function of a function pointer?
CodePudding user response:
Int main ()
{
Using STD: : cout;
Using STD: : endl;
The test * aa=new test;
The test * bb=new test;
Cout & lt;Cout & lt; return 0;
}
Could you tell me how to evaluate a class or object memory size?