S
Smokey Grindle
Ok say I have a person class, a user class and a subuser class...
the person class is the base class, which implements the IPerson inerface...
which contains methods Update, create and remove..
now say the user class inherits the person class but also implements the
IUser interface... which has the same methods... update, create and remove
and so on for the sub user...
so I have an object now that is based on the sub user and I for some reason
casted it as a IPerson, and call the update method on it, it will run the
sub user's update methods correct? at least that is how I understand it to
work, it shouldn't run the base method, IPerson.Update's implementation...
is this correct? thanks!
the person class is the base class, which implements the IPerson inerface...
which contains methods Update, create and remove..
now say the user class inherits the person class but also implements the
IUser interface... which has the same methods... update, create and remove
and so on for the sub user...
so I have an object now that is based on the sub user and I for some reason
casted it as a IPerson, and call the update method on it, it will run the
sub user's update methods correct? at least that is how I understand it to
work, it shouldn't run the base method, IPerson.Update's implementation...
is this correct? thanks!