Beginning Java Programming: The Object-Oriented Approach Chapter 7 OOP, Inheritance, and Multiple Classes

This is the live code sandbox for Beginning Java Programming: The Object-Oriented Approach Chapter 7. This example demonstrates a complete object-oriented program that implements withdrawal and deposits from/to savings and checking bank accounts. Notice how the SavingsAccount class and CheckingAccount class are derived from the abstract class Account. This inheritance helps other classes like the AccountManager class work with both types of accounts using just an Account object. Use the project explorer tree to the left of the code window to explore the additional classes. Click “Run” to run the example in your browser or edit the code and then click “Run” to run it with your changes.
You can download the complete code for Beginning Java Programming: The Object-Oriented Approach as well to work with it in your own code editor.

Return to the complete list of live code sandbox examples for Beginning Java Programming: The Object-Oriented Approach

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *