Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago