Pravin Shukla
What is the default access modifier of a class?
By Pravin Shukla in C# on Dec 19 2013
  • Amit Mishra
    Dec, 2016 13

    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.

    • 1
  • plm
    Mar, 2014 10

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

    • 1
  • Ashish Singh
    Dec, 2013 22

    internal

    • 1
  • Mukesh Kumar
    Sep, 2017 12

    Public

    • 0
  • Amit Mishra
    Dec, 2016 13

    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.

    • 0
  • shikhar gihlotra
    Nov, 2016 24

    internal

    • 0
  • Sanjay Maurya
    Nov, 2015 21

    internal

    • 0
  • Pramod Verma
    Feb, 2015 7

    private

    • 0
  • Pramod Verma
    Feb, 2015 7

    Private

    • 0
  • Sunil Gaded
    Aug, 2014 28

    private

    • 0
  • sharath p a
    Jul, 2014 18

    i hope its private as per Msdn

    • 0
  • suresh Shewale
    Feb, 2014 10

    internal

    • 0
  • Vijay Kumar
    Jan, 2014 16

    internal

    • 0
  • Sandeep Singh Shekhawat
    Dec, 2013 20

    internal

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS