C++ – Class:Struct

Hi
Ever tried this one?

struct foo_struct {
int bar;
double bar2;
};

class foo2 : public foo_struct
{
int foobel;
};

… Now I can imagine how C++ ISO was created:

“Hey I’ve got some money left, let’s do an ISO standard”

“Isn’t that a lot of work?”

“Nah, just let’s take C, rename structs into classes, turn default heritage policy from private to public and call it ‘C with classes'”

“Ey dude! Great idea! Lets do it!”

… >_<

Leave a Reply

Your email address will not be published. Required fields are marked *