Results 1 to 3 of 3

Thread: Defaut Access Modifier

  1. #1
    Junior Member
    Join Date
    Jul 2008

    Defaut Access Modifier

    What is the default access modifier for a class and class member?
    i thought it is pivate for both, but i went through online test where this was one of the question however my answer above was not listed as one of the the options.
    any idea please

  2. #2
    Junior Member
    Join Date
    Sep 2008

    Thumbs up Re: Defaut Access Modifier

    Classes defined either within or outside of a namespace can only have one of two access modifiers. Classes can either be public or internal. By default, they are internal.

    Whereas Class members can use all five variants of the C# access modifiers. The default access of the class members, in the absence of any modifiers at all, is private

  3. #3
    Junior Member
    Join Date
    Feb 2006

    Re: Defaut Access Modifier

    Default Access specifier of class is "internal"

  4.  Sponsored Ads


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.