Overview
This section explores the next steps in developing Java code more complicated than single class programs.
Oracle Java Tutorial links
- Use access modifiers: private, protected, public
- Override methods.
- Overload constructors and other methods appropriately.
- Use the instanceof operator and casting.
- Use virtual method invocation.
- Override methods from the Object class to improve the functionality of your class.
- Use package and import statements
Exercises
Do the exercises for Classes in the Oracle Java tutorial here. Once you are done, the answers can be checked here.
Do the exercises for Objects in the Oracle Java tutorial here. Once you are done, the answers can be checked here.
Do the exercises for Inheritance in the Oracle Java tutorial here. Once you are done, the answers can be checked here.
Do the exercises for Packages in the Oracle Java tutorial here. Once you are done, the answers can be checked here.
Further exercises
Look at the page Advanced Class Design for exercises using the concepts above.