Can't call method from class?
I'm new to programming and I was wondering what I did wrong here. Here's the code: class Hero { protected string name; protected int age; protected int strength; protected int intelligence; public void Stats() { Console.WriteLine("Name: " + name); Console.WriteLine("Age: " + age); Console.WriteLine("Strength: " + strength); Console.WriteLine("Intelligence: " + intelligence); } } class Spartan : Hero { public Spartan(string name, int age, int strength, int intelligence) { this.name = name; this.age = age; this.strength = strength; this.intelligence = intelligence; } public string ChooseWeapon(string weapon) { return weapon; } } static void Main(string[] args) { Hero Spartan_1 = new Spartan("James", 40, 80, 40); Spartan_1.Stats(); Spartan_1.ChooseWeapon("Spear"); Console.ReadKey(); } Here's the error I get: 'Program.Hero' does not contain a definition for 'ChooseWeapon' and no extension method 'ChooseWeapon' accepting a first argument of type 'Program.Hero' could be found (are you missing a using directive or an assembly reference?)