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

Another question...

All my classes compile, now it's time for a test class. The user will enter the information for each "customer". Would I just need to create one Customer object and then in the parameters create objects for name, address, account etc?


Customer cust1 = new Customer(new Name(args), new Addres(args), new BankAccount(args)) ;

Is that the best way to do it or does anyone have any suggestions?
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