Hacker News new | past | comments | ask | show | jobs | submit login

By default it is private.

Usually private inheritance is mostly used for library code, as a way for code reuse but without exposing the inheritance relationship to the class users. Also coupled with mixins sometimes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: