#include <iostream> class Monkey { public: void print() { std::cout << "Private inheritance is shit" << std::endl; } }; class CppMonkey : private Monkey { }; int main() { CppMonkey *you = new CppMonkey; reinterpret_cast<Monkey*>(you)->print(); return 0; }