#37 Access Modifiers in Java | In Tamil | Java Tutorial Series | Error Makes Clever

Опубликовано: 17 Сентябрь 2024
на канале: Error Makes Clever
4k
131

In this video, we move into the access modifiers in Java and explain how they control access to your classes, methods, and variables. Also, we'll cover modifier types.

In public, we see how to make your code accessible from anywhere in your project. Next, in a private modifier, we'll see why it’s crucial to keep your data safe and hidden within the same class.

Moving forward to the next type is protected, we'll see how to allow access within the same package and to subclasses, even if they’re in different packages.

we'll wrap things up with a default modifier, in this we understand how the default access level works when no modifier is specified, limiting access to the same package.

Java in Tamil

Join our 700K+ Instagram community