c# - "Internal" Modifier & OOP Principles -


I have heard that some people use the internal modifier to hide classes and members outside Is called the assembly in which they are declared because it defeats the main principles of OOP Is this really true?

Is this really true?

No, this is not true. Its uses of the internal visibility modifier are classes that you do not want to use outside your assembly, but still to be public inside the assembly. For example, if you are preparing an API, then there may be classes that you do not want to show in front of your API's users.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -