Hello, I'm following a tutorial at Inheritance (C# Programming Guide) | Microsoft Docs and I'm getting this error:
Inconsistent Accessibility: base class WorkItem is less accessible than class ChangeRequest
What's going on here? I've come accross with this before on that site. Here's a part of the code:
VB.NET Code:
namespace Business { // ChangeRequest derives from WorkItem and adds an item (originalItemID) // and two constructors public class ChangeRequest : WorkItem { protected int originalItemID { get; set; } ...




Reply With Quote
