M
Matthew
Hi, I have a base class called Item with a virtual function act. It's
subclass Sword defines the function again doing something different
from the first. It store the sword in a vector of items and call the
act function and, as to be expected, it calls the one from Item. How
can I get it to call the one from sword?
subclass Sword defines the function again doing something different
from the first. It store the sword in a vector of items and call the
act function and, as to be expected, it calls the one from Item. How
can I get it to call the one from sword?