3 namespace InternalAccess
5 public abstract class Base
8 internal string Prop { get { return "A"; } }
11 public class DerivedInternalExample : Base
13 public DerivedInternalExample () { }
14 internal new string Prop { get { return "D"; } }
17 public class DerivedProtectedExample : Base
19 public DerivedProtectedExample () { }
20 protected new string Prop { get { return "E"; } }
25 public static int Main ()
27 DerivedInternalExample die = new DerivedInternalExample ();
31 DerivedProtectedExample dpe = new DerivedProtectedExample ();