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

class B : A { // defaults to private inheritance
};

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