Overriding and Inheritance in C#
问题 Ok, bear with me guys and girls as I'm learning. Here's my question. I can't figure out why I can't override a method from a parent class. Here's the code from the base class (yes, I pilfered the java code from an OOP book and am trying to rewrite it in C#). using System; public class MoodyObject { protected String getMood() { return "moody"; } public void queryMood() { Console.WriteLine("I feel " + getMood() + " today!"); } } and here are my other 2 objects that inherit the base class