java-training/src/AccessSpecifiers.java
<filename>java-training/src/AccessSpecifiers.javapublic class AccessSpecifiers {
    // private - most strict = variable c is accessible only inside the class
    private final boolean c = false;

    // default - less strict = variable b is accessible only inside the package
    String b = "hello";

    // protected - relaxed = variable a is accessible inside package and all its subclasses
    // (subclasses that are possibly outside the current package)
    protected int a = 3;

    // public - full access = variable hola is accessible everywhere (not recommended, always use private for fields)
    public String hola = "Hello";

    int returnIncrementedA() {
        return this.a + 1;
    }
}


