Results 1 to 3 of 3

Thread: [RESOLVED] [2.0] Default access modifier for classes

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Resolved [RESOLVED] [2.0] Default access modifier for classes

    At first I thought it was private because the default access modifier for variables, methods, functions, etc are private, but I soon found that it was not because I was able to reference them from other classes. Then I thought it was public, but then found out that it was not. Now I'm thinking it's internal, which it may or may not be. But what is it really, I'd sure like to know. Is there some sort of custom access modifier specifically for classes that isn't actually a keyword or something? What access modifier does a class use by default?

  2. #2
    Hyperactive Member nothingofvalue's Avatar
    Join Date
    Jul 2005
    Location
    Arizona
    Posts
    489

    Re: [2.0] Default access modifier for classes

    They default to "Internal" and you can read about it here:
    http://msdn2.microsoft.com/en-us/lib...21(VS.80).aspx
    "Imagination is more important than knowledge..."

    Albert Einstein
    -----------------------------------------------
    If my reply helped you then you really were lost, but I still took the time to help, please rate it anyway

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: [2.0] Default access modifier for classes

    Oh, alright, that what I was thinking when I posted this. Thanks. Resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width