Can anyone explain the output of the following code?
#include #include class Animal { public: Animal(const std::string &
virtual in subclass-->no need. You just add const to function in subclass to make it same signature