This bank example is a perfect example of object oriented programming in Java. However, because the code is quite large compared to other examples, and because it contains three classes, This code has been placed into several external text files.
To run these files, place the three separate text files into their own classes within a Java Package, and run the “Bank.java” class. (Technically you can run any of the classes. However, the bank.java class contains the main method, so it only makes sense to start there.)
Back to Examples