class foo {
public:
int m_counter;
float m_value;
char * m_buffer;
};
class fooed : public foo {
public:
double m_double;
}; As in the previous tutorial, both the class fooed and the structure fooed have exactly the same size of twenty bytes (a double field being eight bytes in length).
Comments :
0 comments to “Class Inheritance”
Post a Comment