using Microsoft.Win32; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class Hero { public string name; public int hp; public int power; public Hero(string name, int hp, int power) { this.name = name; this.hp = hp; this.power = power; } public void Attack() { Console.WriteLine($"Name: {name}"); Console.WriteLine($"Power: {power}"); } public void Defense() { Console.WriteLine($"You got molested and took damage. Now you have {hp-20}hp"); } } public class MainClass { public static void Main() { Hero hero1 = new Hero("gondon", 100, 50); hero1.Attack(); hero1.Defense(); } }