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
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
Get step-by-step solutions from verified subject matter experts
