4 ms·
> e.g. "knight attacks mage" is the "attack" function a member of knight or a member of mage? For me, it's a member of the Fighter protocol/interface to which
by zapzupnz 8y ago
> e.g. "knight attacks mage" is the "attack" function a member of knight or a member of mage?
For me, it's a member of the Fighter protocol/interface to which they both conform, and either might override the default implementation or leave it be.