Sunday, December 5, 2010

structs and classes

struct A:public B{A();C();}; is functionally equivalent to class A:public B{public:A();C();};

Note that the public in struct is unnecessary.

No comments:

Post a Comment