
JAVA OOP
Java OOP – Java Access Modifiers
An access modifier restricts access of a class, constructor, data member, and method in another class. In java, we have four access modifiers that specify which classes can access a given class and its fields, constructors and methods. Default Private Protected Public If you want you can refer previous concepts Inheritance and Polymorphism. Let’s go […]
August 15, 2020