Name: Anonymous 2010-02-06 12:22
I'm reading `C++ Common Knowledge' to find out more about this fascinating pile of crap. I'm currently in the section `Member Function Lookup' and discovered this gem:
I understand what it does and why it does it, but what the fuck was Bjarne thinking when he decided this? If this is object-oriented programming, I'm Ada Lovelace. HIBT?
class Foo {
public:
void x(int) {}
};
class Bar : Foo {
int x; /* This is fuckin' private. */
};
int main()
{
Bar bar;
bar.x(3);
return 0;
}I understand what it does and why it does it, but what the fuck was Bjarne thinking when he decided this? If this is object-oriented programming, I'm Ada Lovelace. HIBT?