Y
Hacker News
new
|
ask
|
show
|
jobs
by
phloxicon
4068 days ago
I really like the idea of capitalization selecting public and private scope. However, how do they use protected scope?
1 comments
IshKebab
4068 days ago
There is no protected. There's no inheritance anyway.
link
NateDad
4068 days ago
Note that everything in the same package can access all the private stuff... so you do have some flexibility. You can write two types that reference each other's private data/functionality... they just need to be in the same package.
link