Java Programming quiz, level Intermediate, question 9
| Question: | A member which is to be visible within the same class, other classes in the same package, and also subclasses, but NOT in other classes which are in different packages and are not subclasses, is declared as: |
| Answer 1: | protected This was the CORRECT answer |
| Answer 2: | private |
| Answer 3: | public |
| Answer 4: | no declaration is made - the question describes the default condition |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|