Question: In java, write a customer class that minimally stores the following data fields for a customer: Name Customer phone number Total amount of purchase Time

In java, write a customer class that minimally stores the following data fields for a customer:

Name

Customer phone number

Total amount of purchase

Time duration of membership by month

The following methods should also be provided:

A constructor that initializes the name and phone number

A method that returns the customer name field

A method that returns the customer phone number

A method that determines if two customer objects are equal if their name and phone number are the same

Methods to retrieve the total amount of purchase

Methods to update the total amount of purchase if a new purchase has been placed by the customer

Method to set and retrieve the time duration of membership by month

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!