Hacker News new | ask | show | jobs
by IshKebab 4068 days ago
There is no protected. There's no inheritance anyway.
1 comments

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.