Bank - / Assignment #: 8 / Name: your name / StudentID:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// Assignment #: 8 // Name: your name // StudentID: your id // Lecture: your lecture number // Description: It represents a bank account. The class Bank contains information about a bank that // a customer can have an account with. public class Bank { // instance variables private String bankName; private int bankID; private Address bankAddress; /************************************************************************ Constructor method to set up the new Bank object, storing initial values ************************************************************************/ public Bank() { bankName = new String("?"); bankID = 0; bankAddress = new Address(); } /************************************************************************ Accessor method: This method returns the name of the bank. ************************************************************************/ public String getBankName() { return bankName; } /************************************************************************ Accessor method:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/09/2010 for the course CSE 71682 taught by Professor Nakamura during the Spring '10 term at ASU.

Page1 / 2

Bank - / Assignment #: 8 / Name: your name / StudentID:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online