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, 21.06.2019 13:10
Java g array testgrades contains num_vals test scores. write a for loop that sets sumextra to the total extra credit received. full credit is 100, so anything over 100 is extra credit. ex: if testgrades = {101, 83, 107, 90}, then sumextra = 8, because 1 + 0 + 7 + 0 is 8.
Answers: 1
question
Computers and Technology, 22.06.2019 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
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
Mathematics, 21.08.2019 08:30
question
Mathematics, 21.08.2019 08:30
question
Computers and Technology, 21.08.2019 08:30
question
Mathematics, 21.08.2019 08:30
question
English, 21.08.2019 08:30
Questions on the website: 13722362