Forums Register Login

default class member visibility in java 6

+Pie Number of slices to send: Send
Am I right that default visibility is package. So it's more strict then protected (that allows to access class member in the same package in from descendent) and allows access only from the same package. Many thanks.
+Pie Number of slices to send: Send
Yes, that's right. That's been true in every version of Java since the beginning.
[ June 29, 2008: Message edited by: Ernest Friedman-Hill ]
Something must be done about this. Let's start by reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1713 times.
Similar Threads
Question - Philip Heller's book
javadoc help
probably statement of the obvious regarding class member access
Question about protected access
protected and package/default access
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:37:00.