D0018D (Spring 25) - Object oriented programming in Java @ LTU
This is the continuation course of Initial programming in Java. In this course we are specifically focusing on using OOP in Java to make a banking system. Each assignment builds on top of the other starting out with some simple classes and methods. The finished product will be a simple banking system with a GUI and database.
This repo contains all the marked assignments I've worked on.
We just made a hello world program and handed in for our own sake to make sure we know how to hand in our assignments. Nothing special at all.
The foundations of our banking application. In short it introduces the very basics of Objet-oriented programming by introducing classes and objects. The classes consists of a Customer class which represents the banks customers, an Account class that represents a bank account, as well as, the BankLogic class consisting of the applications business logic.
No preview/image of the running program provided since the code is only tested using the TestBank.java class that was provided by the teacher. The program is not runnable (yet).
This assignment introduces inheritance, polymorphism and class design (UML) as new OOP concepts. Notable for this assignment is that inheritance is used to introduce multiple types of accounts (CreditAccount & SavingsAccount), all of which extends/derives from the Account base class. Additionally a Transactions class is used to keep track of transaction data which is stored in each account object.
No preview/image of the running program provided since the code is only tested using the TestBank.java class that was provided by the teacher. The program is not runnable (yet).
In short the existing program is finally getting a GUI. Thanks to the new GUI the application is now runnable and customers, accounts and transactions may be added. To get a better picture please see the image below.
Though databases would have been exciting this assignment is limited to simple exporting and importing from .dat files using serialization and de-serialization. In addition to the serialization, account statements may be generated and exception handling is used to avoid fatal errors and crashes.
| Assignment | Handed in | Grade | Best possible grade |
|---|---|---|---|
| Assignment 1 | ☑ | VG | VG |
| Assignment 2 | ☑ | VG | VG |
| Assignment 3 | ☑ | G | VG |
| Assignment 4 | ☑ | G | VG |
| Final exam | ☑ | G | VG |
G