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:

protected access modifier in c#

and below sample msdn site:

msdn reference protected access modifiers

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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -