News
Virtual functions cannot be static and also cannot be a friend function of another class. Virtual functions should be accessed using pointer or reference of base class type to achieve run time ...
std::cout << "draw a circle!" << std::endl; // override the virtual function } }; // this means that the shape class does not implement draw () // it makes it clear that the virtual function is not ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results