The Artima Developer Community
Sponsored Link

Java Answers Forum
Please, could anyone help me with this exercise?

1 reply on 1 page. Most recent reply: Dec 5, 2007 2:21 AM by Vincent O'Sullivan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
David charles

Posts: 1
Nickname: java2007
Registered: Dec, 2007

Please, could anyone help me with this exercise? Posted: Dec 4, 2007 11:12 AM
Reply to this message Reply
Advertisement
Develop a class with overloaded methods

1. Create a class called the Customer.java class

2. Within the customer.java class, create a method called setCustomerInfo and add an overloaded method setCustomerInfo

3. Depending on how the setCustomerInfo method is called, it does one of the following:

a. Sets the ID, name, address and phone no. for a Customer object (this is the minimum info. Needed for a new Customer)
b. Sets the ID, name, address, phone no., and email address for a Customer object.

4. Create a new test class called CustomerTest

5. In the main method:

a. Create 2 object references to different Customer objects
b. Use each variation of the setCustomerInfo method to provide information for each Customer object.
c. Display the contents of each Customer object.

Thank you so much


Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Re: Please, could anyone help me with this exercise? Posted: Dec 5, 2007 2:21 AM
Reply to this message Reply
Help you? Yes. Do it for you? No.

What have you done yourself so far? Have you installed or got access to a Java implementation? What is it that you can't do?

Flat View: This topic has 1 reply on 1 page
Topic: Please, could anyone help me with this exercise? Previous Topic   Next Topic Topic: Eclipse Version: 3.3.1.1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use