• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2316
  • Last Modified:

What are the benefits of using internal vs. private or vice versa

The reason I ask is that I realized that I can use internal on constants and Win32 imports and was wondering the actual difference between the two and benefits of each.
1 Solution
Gautham JanardhanCommented:
internal variable/methods can be accesed by objects in the same assembly.
while private is only acessible in the same class.
ammotroopAuthor Commented:
Thanks for the info.  That actually makes a lot of sense.  I will now have to start using internal on a lot of applications where I had originally made variables static.  But, I think that internal would actually suit my needs better.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now