Access modifier in java are keywords that control the visibility and scope of classes, methods,variables and constructor in an application
They are a fundamental part of object oriented programming and help to enforce encapsulation which restricts directs access to some of an object
4 types of access modifer
1.public
2.private
3.protected
4.default (no name)
Top comments (0)