public void Run() { MuseElf elf = new MuseElf("Mimi", 2); SoulMaster soulMaster = new SoulMaster("Pesho", 5); BladeKnight bladeKnight = new BladeKnight("Gosho", 2); Console.WriteLine($"Elf name: {elf.Username}, Level: {elf.Level}"); Console.WriteLine( $"SoulMaster name: {soulMaster.Username}, Level: {soulMaster.Level}"); Console.WriteLine( $"BladeKnight name: {bladeKnight.Username}, Level: {bladeKnight.Level}"); }
public static void Main(string[] args) { Hero hero = new MuseElf("Ivo", 101); System.Console.WriteLine(hero); }