Private inheritance is a form of inheritance is which the public and protected portion of the base class becomes private in the derived class and the derived class has no access to the private members and methods of the base class.
Given this sample code: #include <iostream> #include <stdexcept> class my_exception_t : std::exception { public: explicit …
c++ exception inheritance private private-inheritance