View Single Post
Old 01-25-07, 05:12 PM   #1
Marvel_us's Avatar
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
Default Sigh, Java HW Help

So basically I have to design a program that carries out banking operations on a customers' account.

Now what I need to do is create a class for the customers Name, Address, Bank Account, Customer and Bank database.

I'm having trouble with creating the class Customer. I want my constructor to accept a Name object, Address object and Bank Account object however I don't remember how to do that. The Name, Address and Bank Account classes are set up already.

This is what I have for the constructor but I'm stuck.

public Customer( Name customerName, Address customerAddress, BankAccount customerBankAccount )
Did I set the constructor up right? If so, what the hell goes in the body?

Suggestions please.
Main Rig
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU ||

60gb PS3 Owner
PSNid: Marvel_us
Marvel_us is offline   Reply With Quote