The parent class 'Parent' requires its abstract method 'method2' to be overridden by a class present in the same package (i.e.,
test), since its package private.
In order for the class 'Child' to be able to override this, the method2's access modifier needs to be changed, otherwise a class outside the package test would not be able to extend Parent concretely.