CE03: Character and Item Classes
VerifiedAdded on 2019/09/30
|3
|1002
|81
Project
AI Summary
Create a Visual Studio project named 'FirstnameLastname_ CE03' using C# Console Application template. Implement an interface IUsable and abstract class Item that inherits from it. Create classes Potion and StatusMedicine that inherit from Item. The Potion's Use method adds its int effect value to the Character parameter's health, while the StatusMedicine's Use method sets the Character parameter's statusEffect string to an empty string if it matches or is 'all'. Implement user options for setting the statusEffect, using a Potion, and using a StatusMedicine.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
1 out of 3