class A {
    public:
    void foo() {}
};

class B : public A {
};

int main() {
    B b;
    b.foo(); // doesn't exist, unless we inherit from A publicly
}
