What is the default access modifiers for the following?
class, variable, property, & method...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Sep 23, 2013, 12:13 AM
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.
VulpesPosted Sep 22, 2013, 8:04 AM
For fields (class variables), properties and methods it's private.