Access Control and Inheritance with default modifier

In java access modifiers and inheritance topic says below 4 points. what is “more private” signify in 3rd point ?

  1. Methods declared public in superclass =>public in all subclasses
  2. Methods declared protected in superclass => protected or public in subclasses
  3. Methods declared without access control => can be declared more private in subclasses
  4. Methods declared private => not inherited at all


Source: java

Leave a Reply