Write a short note on 'Access modifiers'.
Answers
Answered by
0
Access Modifiers are keywords used in object-oriented programming languages.
They define accessibility of classes, methods and other members.
C++ uses modifiers named ‘public’, ‘protected’ and ‘private’ whereas java uses an extra modifier named ‘package’ along with these three.
These access modifiers form a part of programming language syntax and they are used to facilitate the encapsulation of components.
Similar questions
Psychology,
7 months ago
Physics,
1 year ago
Computer Science,
1 year ago
English,
1 year ago
Math,
1 year ago
Math,
1 year ago