The concept is virtual function, and not virtual member. You cannot have data-member as virtual.
Also, the function must be defined in base class as virtual.