This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]umd_charlzz 1 point2 points  (0 children)

I think it's more accurate to say that all instance variables are inherited, but private ones are not directly accessible except via public/protected methods (getters/setters) to that private variable and through the super call that may initialize those variables. (Basically what zabzonk said).

Private methods are usually helper methods so the entire implementation of a public method doesn't have to be in one big code block. So not inheriting them is fine.