Lab 3 - Banking System.pdf - CST8132 Object-Oriented...

This preview shows page 1 - 2 out of 4 pages.

CST8132 Object-Oriented Programming Lab #3: Bank System Purpose Think about Java Objects and how they communicate. Work with multiple classes and their constructors. Work with examples of the has-arelationship, Association, Aggregation, Compositionbetween objects. Description For this exercise, we will be considering the implementation of a simple banking system. Our goal is to become familiar and comfortable with the notion that Object-Oriented Programming is about Objects communicating and interacting. Recall that Java Objects in general have fields (also called attributes, instance variables, or properties) which constitute their state, and methods which constitute their behaviors. These Objects are instances of Java Classes, which have fields (and constructors) to specify the Object’s state, and methods to specify the Object’s behaviors. When a property of one object is a reference to yet another object, we say the first object is in a has-arelationship with the second, and there is an Associationbetween them. More specifically, there is an Aggregationrelationship. Background We have different clients that are account holders (which means, they have account) in a bank. Every client will have information like first name, last name and some contact information like phone number and email address. When a client opens an account in a bank, that client will have an account number, type of account (chequing or savings), opening balance etc. In this basic system, we are not considering account type. The Bank will have nnumber of such clients.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture