Question: need help writing a program for #2 in java! 2. (70) Design a Customer class, each instance being a customer in DMV. The class has

need help writing a program for #2 in java! need help writing a program for #2 in java! 2. (70) Design

2. (70) Design a "Customer" class, each instance being a customer in DMV. The class has the following data fields: name: String // customer name age: int // customer age service: String // a brief description of the service of this visit ticket Num: int // unique number to identify this customer Define the following methods: Default constructor, which will initialize the name to "anonymous", age to 18, service to "unknown" Constructor with arguments: name, age, service Getter/Setter methods to get/set properties of name, age, and service Getter method to get ticketNum Design a solution so each customer will have unique ticketNum. Test: Create a few "customers" and display message: Customer: tickerNum, name, service

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!