C, Access Modifiers (beyond public and private) what they are, how to use them, and best practices
An access modifier in C, specifies who can see and use a resource. You probably are familiar with public and private. We use those a lot but did you know that there are others In this video, I am going to cover six different access modifiers and when you would use each. We are also going to discuss why we have various modifiers and it isn t just about security. Full courses: Source Code: Patreon: Mailing List: 0:00 Intro 1:01 Demo App explained 2:03 Private: The code is only accessible within the same 7:03 Internal: The code is only accessible within its own assembly, but not from another assembly 10:06 Public: The code is accessible for all classes 12:58 Protected: The code is accessible within the same class, or in a class that is inherited from that class
|
|