subject

Design a class named person with fields for holding a person's name, address, and telephone number (all as strings). write a constructor that initializes all of these values, and mutator and accessor methods for every field. next, design a class named customer, which inherits from the person class. the customer class should have a string field for the customer number and a boolean field indicating whether the customer wishes to be on a mailing list. write a constructor that initializes these values and the appropriate mutator and accessor methods for the class's fields. demonstrate the customer class in a program that prompts the user to enter values for the customer's name, address, phone number, and customer number, and then asks the user whether or not the customer wants to recieve mail. use this information to create a customer object and then print its information. put all of your classes in the same file. to do this, do not declare them public. instead, simply write: class person { } class customer { }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
If you turn on the lock alpha button , what happens
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
You know the right answer?
Design a class named person with fields for holding a person's name, address, and telephone number (...
Questions
question
History, 30.07.2019 22:00
question
Social Studies, 30.07.2019 22:00
question
Chemistry, 30.07.2019 22:00