my book explains that
isnt the point of inheritance is to add features to a class without modifying it? but if class B cant access anything from base class A then whats the whole point? am i missing something here?Code:class C: public A //able to access public member functions class B: private A //un-able to access public member functions
whats the point of the private keyword in inheritance?