Muralidhar Godi
May 4th, 1999, 02:44 AM
class name {
private:
int first;
int second;
public:
int func(int);
};
If I type the size of the class it says = 8 where the size of int is 4.
If I made the function "func" as virtual the size of class becomes 12. Why?
What the magic with virtual.
private:
int first;
int second;
public:
int func(int);
};
If I type the size of the class it says = 8 where the size of int is 4.
If I made the function "func" as virtual the size of class becomes 12. Why?
What the magic with virtual.