Computer Science, asked by brinda544, 1 year ago

Write a short note on 'Access modifiers'.

Answers

Answered by aqibkincsem
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