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, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 14:30
The “rule of 72” is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
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
Mathematics, 26.05.2020 02:04
question
Mathematics, 26.05.2020 02:04
question
Mathematics, 26.05.2020 02:04
question
Mathematics, 26.05.2020 02:04
question
English, 26.05.2020 02:04
question
Spanish, 26.05.2020 02:04
Questions on the website: 13722360