Okay, I have two classes; GameItem, and MagicItem
GameItem is a base class, and MagicItem is a GameItem subclass that has some properties (implemented as getter/setter methods) needed by any item which can have 'magic' powers. I also have a host of subclasses of GameItem, that represent specific classes of items in my game that the player can pick up and use

ArmorItem
FoodItem
GauntletItem
HelmItem
...

and so on. These are not subclasses of MagicItem, but some do implement an IArmor or IWeapon interface. Now I add a class, StaffItem, that's a subclass of MagicItem, but it also implements the IWeapon interface. Question: If I make a subclass of a class (either GameItem, MagicItem, or a direct subclass thereof) which implements either the IArmor or IWeapon interface, do I have to re-specify the interface name for each subclass (in the Properties window), or will it inherit the interface correctly regardless?

Hi William,

No need to specify a thing, the interface is inherited.

Marc
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to