Hello I have a namespace and two classes. Bar inherits Foo. How can I hide Foo from external usage? One way would be to do it like the following:
I don't want to be able to access Foobar::Foo, But I don't think that's the ultimate way.Code:namespace Foobar { class Bar { private: class Foo: private Enemy { private: Suit value; } foos[3]; }; }
Any suggestions?