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 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
question
Engineering, 04.07.2019 18:10
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
question
Engineering, 04.07.2019 19:10
Starting wih an energy balance on a rectangular volume element, derive the one- dimensional transient heat conduction equation for a plane wall with constant thermal conductivity and no heat generation.
Answers: 1
You know the right answer?
Design a class named person with fields for holding a person's name, address, and telephone number....
Questions
question
English, 16.02.2021 14:00
question
English, 16.02.2021 14:00
question
Mathematics, 16.02.2021 14:00
question
Social Studies, 16.02.2021 14:00
question
English, 16.02.2021 14:00
Questions on the website: 13722363