Wed, Aug 14, 2024We usually do public inheritance in C++, like class B: public A , but probably it is not necessary; we should by default do private inheritance like class B: A, and upgrade to public only if it is necessary..Next - Previous