Define Data Access Modifier.- Access Modifiers or Access specifiers provide a class, a variable or a function with accessibility. It means that they govern who can access them.
- These are the keywords in object-oriented languages that sets the accessibility of classes, methods, member function, member variables etc.
- Access modifiers defines the accessibility of the specific type, for example: class, structure, data member etc.
There are five types of access modifiers: 1. Public 2. Private 3. Protected 4. Internal 5. Protected Internal
|