I have a C++ question. I wrote the following class:
class c { int f(int x, int y){ return x; } };
the sizeof() of class c returns \"1\"
1 means 1 byte. And the reson is that methods are not stored within an object. They are used by objects, but not stored in them. Only class members are stored in objects. Try to add a plain int member or something and see what happens.
int