c# - protected access modifiers in .net -
this question has answer here:
i created application depicting protected access modifiers, using sample provided on msdn site, seems error prone, below code using:

and below sample msdn site:

your accessmodifierscsharp class main defined not inherit class1, has no access protected members.
you can access method1 class2 inherit class1.
the difference between code , msdn code class b contains main inherits directly a.
Comments
Post a Comment