Question: Could I have a C# code based off these requirements: Add 3 interfaces to your RPG project: One interface should have a method for being
Could I have a C# code based off these requirements:
Add interfaces to your RPG project:
One interface should have a method for being the target of an attack
Another interface should have a method for attacking a target
The last interface will combine the previous interfaces
Both Hero class and Villain class should implement the third interface
Names of the interfaces are up to you
Naming Convention should start with I
Naming Convention should be an adjective
Usually ending in able
The method is typically based on the interfacename:
ICloneable Clone
IComparable CompareTo
IDisposable Dispose
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
