Java Access Modifiers - Public Private Default And Protected

preview_player
Показать описание
Java access modifiers control access to classes, class variables and methods. We have Public, Private, Protected and Default access modifiers. Some people might not be clear on Default vs Protected, learn on how Protected members behave in this video. According to the Java docs:
There are two levels of access control:
At the top level—public, or package-private (no explicit modifier).
At the member level—public, private, protected, or package-private (no explicit modifier).

Time Stamp:
00:00 - Intro To Access Modifiers
00:40 - Class access modifiers
01:30 - Default access modifier
03:20 - Private access modifier
05:25 - Protected access modifier

Connect With Lemubit Academy 🔍:
Рекомендации по теме