Listed below is the whole problem I am working on. I have completed my Customer Class and now I am having trouble with my CustomerTest class. I am not sure if I declared my phone number variable correctly.
In this task, you write a Customer class with an overloaded method called
setCustomerInfo.
Create a class called Customer and save the file as Customer.java Within the Customer class, add two overloaded methods called setCustomerInfo.
Depending on how the setCustomerInfo method is called, it does
one of the following:
● Sets the ID, name, address, and phone number for a Customer
object. (This is the minimum information needed for a new
Customer.)
● Sets the ID, name, address, phone number, and email address
for a Customer object.
Create a display method to display the values of all the member
variables of the Customer class.
This is what I am having major trouble on. I am not sure how to create two object references.
7. In the main method of CustomerTest class write code to perform the
following tasks:
a. Create two 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.
My code is attached below.. I appreciate any help I am stuck and I think I am almost done. .