18
Reply

What is the default access modifier of a class?

Pravin Shukla

Pravin Shukla

Dec 19, 2013
1.8k
0

    Please read this MSDN carefully. It says:- Top-level types, which are not nested in other types, can only have internal or public accessibility. The default accessibility for these types is internal. Nested types, which are members of other types, can have declared accessibilities as indicated in the following table.So, parent class is Internal by default.

    Amit Mishra
    December 13, 2016
    1

    Default access modifier for class in C# is private. Check here: http://msdn.microsoft.com/en-us/library/ba0a1yw2.aspx

    plm
    March 10, 2014
    1

    internal

    Ashish Singh
    December 22, 2013
    1

    Public

    Mukesh Kumar
    September 12, 2017
    0

    Public

    Mukesh Kumar
    September 12, 2017
    0

    Public

    Mukesh Kumar
    September 12, 2017
    0

    Public

    Mukesh Kumar
    September 12, 2017
    0

    Public

    Mukesh Kumar
    September 12, 2017
    0

    Please read this MSDN carefully. It says:- Top-level types, which are not nested in other types, can only have internal or public accessibility. The default accessibility for these types is internal. Nested types, which are members of other types, can have declared accessibilities as indicated in the following table.So, parent class is Internal by default.

    Amit Mishra
    December 13, 2016
    0

    internal

    shikhar gihlotra
    November 24, 2016
    0

    internal

    Sanjay Maurya
    November 21, 2015
    0

    private

    Pramod Verma
    February 07, 2015
    0

    Private

    Pramod Verma
    February 07, 2015
    0

    private

    Sunil Gaded
    August 28, 2014
    0

    i hope its private as per Msdn

    sharath p a
    July 18, 2014
    0

    internal

    suresh Shewale
    February 10, 2014
    0

    internal

    Vijay Kumar
    January 16, 2014
    0

    internal

    Sandeep Singh Shekhawat
    December 20, 2013
    0