Deepak Garg
What is the default access modifier for a Class in C#?
By Deepak Garg in C# on Mar 21 2015
  • Madhuri Mishra
    May, 2015 1

    Default access modifier of class is Internal. And private for class member.

    • 17
  • Upendra Pratap Shahi
    Sep, 2015 4

    Default access modifier of class is Internal and private for class member.

    • 3
  • Sujeet Suman
    Jun, 2015 18

    Default access modifier:-For class: internalFor class members: private

    • 2
  • Shihabudheen K. H.
    Jun, 2015 5

    Default access modifier of class is Internal. And private for class member.

    • 2
  • Shaik Abdul Kalam
    Apr, 2015 21

    Default Access Modifier Of Class is Private....

    • 2
  • Subrata Kundu
    Mar, 2022 10

    Internal

    • 1
  • ava maurya
    Sep, 2018 11

    Internal

    • 1
  • remya t
    Sep, 2015 11

    The internal access specifier hides its member variables and methods from other classes and objects, that is resides in other namespace. The variable or classes that are declared with internal can be access by any member within application. It is the default access specifiers for a class in C# programming.

    • 1
  • Upendra Pratap Shahi
    Sep, 2015 4

    Default access modifier of class is Internal and private for class member.

    • 1
  • sujesh cs
    Jun, 2015 28

    Default access modifier of class : Internal Default access modifier of class member: private

    • 1
  • Rahul Prajapat
    May, 2015 27

    Internal for class and private for member function.

    • 1
  • Piyush chhabra
    May, 2015 1

    For class and struct -- Private For enum and interfaces -- Public

    • 1
  • Sanjay Yadav
    Feb, 2021 10

    Please don’t get confused , In c# by default class is internal and it member will be private.

    • 0
  • Manoj Pal
    Jun, 2019 4

    Default access modifier of class is Internal and member of the class is private

    • 0
  • Tushar Dikshit
    Sep, 2017 27

    Classes are internal by default. Members are private by default.Also, Classes that you declare directly within a namespace, not nested within other classes, can be either public or internal.

    • 0
  • alok sharma
    Jun, 2017 22

    Internal is the default access modifier if no access modifier is specified in a class.

    • 0
  • Vinay K
    Mar, 2017 17

    Internal access modifier

    • 0
  • karthick
    Mar, 2017 6

    ddfd

    • 0
  • Ayappan Alagesan
    Feb, 2017 12

    Internal

    • 0
  • Munesh Sharma
    May, 2016 27

    internal

    • 0
  • Raghvandra Shukla
    Apr, 2016 2

    Internal is the default if no access modifier is specified.

    • 0
  • Akash Varshney
    Oct, 2015 10

    Class will be internal and class members will be private

    • 0
  • Vamsi Krishna
    Oct, 2015 7

    Default access modifier For class: internal For class members: private..

    • 0
  • Pawan Chand
    Sep, 2015 17

    For Class - Internal For Class Member - Private

    • 0
  • Ajeet Mishra
    Sep, 2015 3

    internal

    • 0
  • Ajeet Mishra
    Sep, 2015 3

    internal

    • 0
  • Srinivas Pabballa
    Aug, 2015 28

    class default access modifier is internal and class members default access modifier is private

    • 0
  • Kundan  Jha
    Jul, 2015 31

    Internal....

    • 0
  • pankaj sharma
    Jul, 2015 31

    public

    • 0
  • Sachin Kumar
    Jul, 2015 25

    Internal.

    • 0
  • Sreeni Dony
    Jul, 2015 22

    internal access modifier

    • 0
  • sujesh cs
    Jun, 2015 28

    Default access modifier of a class is internal and private for class members

    • 0
  • Rakesh kumar
    Jun, 2015 26

    internal access modifier

    • 0
  • Rakesh kumar
    Jun, 2015 26

    internal access modifier

    • 0
  • Dominique  Ceja
    Jun, 2015 20

    Private Access Modifier

    • 0
  • Dominique  Ceja
    Jun, 2015 20

    Private Access Modifier

    • 0
  • Gaurav Jain
    Jun, 2015 18

    It is internal. See link below:- https://msdn.microsoft.com/en-us/library/ms173121.aspx

    • 0
  • Gaurav Jain
    Jun, 2015 18

    default access modifier of class is internal. See link below:- https://msdn.microsoft.com/en-us/library/ms173121.aspx

    • 0
  • Shihabudheen K. H.
    Jun, 2015 5

    Default access modifier of class is Internal. And private for class member.

    • 0
  • Amol Sarkate
    Jun, 2015 1

    internal is by default for class But if you want to provide security then change it

    • 0
  • Mahendra
    May, 2015 27

    Internal

    • 0
  • Kiranteja Jallepalli
    May, 2015 25

    private

    • 0
  • satish kumar
    May, 2015 23

    Private

    • 0
  • Pankaj  Kumar Choudhary
    May, 2015 23

    Internal for class and private for member function.......

    • 0
  • Ravi Shekhar Vishwakarma
    May, 2015 20

    By Default access modifier of Class is 'Internal'. & 'Private' for Data Member n Member Function of Class.

    • 0
  • Kml Surani
    May, 2015 12

    Internal is the default if no access modifier is specified. Struct members, including nested classes and structs, can be declared as public, internal, or private. Class members, including nested classes and structs, can be public, protected internal, protected, internal, or private.

    • 0
  • Prashant Koli
    May, 2015 12

    Internal

    • 0
  • apurv indapurkar
    May, 2015 8

    Default Access Modifier of class is Internal

    • 0
  • Krishnaveni D
    May, 2015 8

    If the class is not nested with in another class then its default access modifier is "Internal" otherwise default modifier is "Private"

    • 0
  • Krishnaveni D
    May, 2015 8

    If the class is not nested with in the another class then default Modifier is"Internal" Else "Private"

    • 0
  • LingaReddy Kerali
    May, 2015 8

    Internal is the default if no access modifier is specified https://msdn.microsoft.com/en-us/library/ms173121.aspx

    • 0
  • LingaReddy Kerali
    May, 2015 8

    Internal

    • 0
  • Mirza Villayat
    May, 2015 5

    Private

    • 0
  • Nirav Vasoya
    Apr, 2015 21

    Internal

    • 0
  • Mohan  G
    Apr, 2015 20

    internal

    • 0
  • Debendra Dash
    Apr, 2015 19

    internal

    • 0
  • Munesh Sharma
    Apr, 2015 16

    Internal

    • 0
  • Deepak Garg
    Mar, 2015 21

    Internal

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS