Virtual function: Difference between revisions

Content deleted Content added
Line 42:
// The non virtual function Move is inherited but not overridden.
void eat() override {
std::cout << println("Llamas eat grass!" << std::endl);
}
};