subject
Computers and Technology, 19.08.2019 17:10 HaseelM

2. (100 points) 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. both classes should have appropriate __init__ and __str__ methods (you can skip the set methods this time, but you will need get methods in person for name, address, and phone). 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: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
How does a vaccine prevent sickness and individual?
Answers: 2
You know the right answer?
2. (100 points) write a class named person with data attributes for a person's name, address, and te...
Questions
question
Mathematics, 09.12.2020 21:10
question
Biology, 09.12.2020 21:10
question
Mathematics, 09.12.2020 21:10