subject
Engineering, 28.11.2019 03:31 123userhi

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 receive 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.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:20
Derive the correction factor formula for conical nozzle i=-(1+ cosa) and calculate the nozzle angle correction factor for a nozzle whose divergence hal-fangle is 13 (hint: assume that all the mass flow originates at the apex of the cone.
Answers: 3
question
Engineering, 04.07.2019 18:20
What is the heat treatment of metals? what is the benefit of it? why and how it's useful? answer in details, do not write by hand.
Answers: 3
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
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, 07.01.2021 21:00
question
English, 07.01.2021 21:00
question
History, 07.01.2021 21:00
question
Mathematics, 07.01.2021 21:00
Questions on the website: 13722360