Behavior of virtual function in C++
- by Summer_More_More_Tea
Hi everyone:
I have a question, here are two class below:
class Base{
public:
virtual void toString(); // generic implementation
}
class Derive : public Base{
public:
( virtual ) void toString(); // specific implementation
}
The question is:
If I wanna subclass of class Derive perform…