subject
Engineering, 18.10.2019 19:00 han68

Design a class named person with fields for holding a person's name, address, and telephone number. write one or more constructors and the appropriate mutator and accessor methods for the class's fields.

next, design a class named customer, which extends the person class. the customer class should have a field for a customer number and a boolean field indicating whether the customer wishes to be on a mailing list. write one or more constructors and the appropriate mutator and accessor methods for the class's fields. demonstrate an object of the customer class in a simple program.

(instructor request) for the demo, write a main that creates 3 customers and prints out their information. make up some names, addresses, phone numbers, etc. so no user input is required.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
question
Engineering, 04.07.2019 18:10
Awall of 0.5m thickness is to be constructed from a material which has average thermal conductivity of 1.4 w/mk. the wall is to be insulated with a material having an average thermal conductivity of 0.35 w/mk so that heat loss per square meter shall not exceed 1450 w. assume inner wall surface temperature of 1200°c and outer surface temperature of the insulation to be 15°c. calculate the thickness of insulation required.
Answers: 3
question
Engineering, 06.07.2019 04:10
An inventor claims to have developed a reversed heat engine (ie. a heat pump) which is able to deliver 10 kj heat into the room at 20°c from outside ambient temperature of -10°c by consuming only 2 kj electricity in winter. this claim is a)-impossible b)-possible only if the heat pump is ideal c)-practically possible d)-unable to be assessed as it depends on the working fluid used in the heat pump.
Answers: 2
question
Engineering, 06.07.2019 04:30
Acompressor compresses a gas, a pump compresses a liquid. for a given pressure ratio, why does it take more work to compress a gas in a compressor than a liquid in a pump? a)- for a given pressure ratio the average specific volume for a gas is much higher than the average specific volume for a liquid. b)- there is no difference. the only difference is the amount of heat generated (not work) c)- for a given pressure ratio the average volume for a gas is much higher than the average volume for a liquid. d)-there is no difference.
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, 15.01.2021 14:00
question
Mathematics, 15.01.2021 14:00
question
Mathematics, 15.01.2021 14:00
question
Mathematics, 15.01.2021 14:00
question
Biology, 15.01.2021 14:00
question
Mathematics, 15.01.2021 14:00
Questions on the website: 13722367