Posted: 6 years ago

Filed under: .NET

Tagged with: c# objectoriented

Follow comments

protected internal access modifier

Here’s how you create a property (though it could be variable, method or I think even class) that can be see by things that subclass the object it belongs to and things that are in the same package:

protected internal object myProperty {
    get { return m_property; }
    set { m_property = value; }
}

Reference:
Java/C# access modifier cheat sheet

Leave a Reply