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

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, kayabwaller4589
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
image
Engineering, 04.07.2019 18:10, mm016281
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit. explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
image
Engineering, 04.07.2019 18:10, settasav9641
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
image
Engineering, 04.07.2019 18:10, anna22684
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
Do you know the correct answer?
Design a class named person with fields for holding a person's name, address, and telephone number....

Questions in other subjects: