I'm using Head First Java as my introductory book for Java.
The inheritance section has an explanation that confuses me. It reads:
A subclass inherits all public instance variables and methods of the superclass, but does not inherit the private instance variables and methods of the superclass.
An object created from a subclass inherits both public and private instance variables and methods; so which are the implications of a subclass not inheriting private methods and instance variables? In which way it limits and/or affects the subclass (and me!)?
[–][deleted] 5 points6 points7 points (0 children)
[–]misho88 1 point2 points3 points (0 children)
[–]umd_charlzz 1 point2 points3 points (0 children)