Type Confusion in C++

I am referring to this link. #include using namespace std; class Base {}; // Parent Class class Execute: public Base { // Child of Base Class public: virtual void exec(const …