What is the default access modifiers for the following?
class, variable, property, & method...
Default access modifier
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 22, 2013, 4:04 AM EDT
For fields (class variables), properties and methods it's private.
Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 22, 2013, 8:13 PM EDT
As per my knowledge, variable property and method all default access modifier is private. and class has default access modifer internal.
please refer
http://msdn.microsoft.com/en-us/library/ms173121.aspx
hope this will help you.