subject

Write a class named person with data attributes for a person's name, address, and telephone number. next write a class named customer that is a subclass of the person the customer class should have a data attribute for a customer number and a boolean attribute indicating whether the customer wishes to be on a mailing list. write a complete main program to prompt the user for all of the needed data, create a customer object, and print out the customer data using the __str__ method. remember that class attributes should be defined as private.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:20
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of studentsโ€™ test scores in the range 0โ€“200. it should then determine the number of students having scores in each of the following ranges: 0โ€“24, 25โ€“49, 50โ€“74, 75โ€“99, 100โ€“124, 125โ€“149, 150โ€“174, and 175โ€“200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
You know the right answer?
Write a class named person with data attributes for a person's name, address, and telephone number....
Questions
question
Mathematics, 01.12.2020 23:10
question
Mathematics, 01.12.2020 23:10
question
Biology, 01.12.2020 23:10
question
Mathematics, 01.12.2020 23:10
question
English, 01.12.2020 23:10
question
Mathematics, 01.12.2020 23:10
question
Social Studies, 01.12.2020 23:10
Questions on the website: 13722363