Simple subclass, superclass question
I'm new to Java but after reading the tutorial docs on their website I can't quite see why this is false (its a question from my learning materials).
When a subclass extends a superclass, all methods that are contained in the superclass are accessible from the subclass.
What Is Inheritance? (The Java™ Tutorials > Learning the Java Language > Object-Oriented Programming Concepts)
"This gives MountainBike all the same fields and methods as Bicycle..."
So why is this false?
Please can someone explain this to me?
Re: Simple subclass, superclass question
Methods can have different "access" modifiers such as public, protected, and..... :o:
You get my hint?
Re: Simple subclass, superclass question
Re: Simple subclass, superclass question