“must declare a body because it is not marked abstract, extern, or partial” – homework help

So I have this assignment for class. I’m given this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assignment11 { class Dog { public void bark() { Console.WriteLine(“Empty method”); } } class Program { static void Main(string[] args) { Dog fido = new Dog(); fido.bark(); Console.Write(“Hit any key to close”); Console.ReadKey(true); } } […]

I do not understand Base Classes

Hello, I am following along in https://scottlilly.com/learn-c-by-building-a-simple-rpg-index/lesson-08-2-using-class-constructors-with-derived-classes/ ​ I DO NOT understand a thing about the : base class thing. I’ve been researching online now for an hour and just cannot get it. I don’t get how I would “know,” when to use it, or when a situation calls for it. Could I avoid using […]