Exercise 2: Using Overloaded Methods

The objective of this exercise is to write a method that is overloaded several times.

Task - Developing a Class With an Overloaded Method

In this task, you write a test class with an overloaded method. Follow these steps to write your class:
  1. Go to the methods directory.
  2. Create a class called Customer.java.
  3. Within the Customer.java class, add an overloaded method called setCustomerInfo.   
    Depending on how the
    setCustomerInfo  method is called, it does one of the following:
  4. Create a new test class called  CustomerTest.
  5. In the main method:
    1. Create two objects references to different Customer objects.
    2. Use each variation of the setCustomerInfo method to provide information for each Customer object.
    3. Display the contents of each Customer object.