Question: PYTHON.Write a class named Person with data attributes: name, address and telephone number. Next, write a class named Customer that is subclass of Person class.

PYTHON.Write a class named Person with data attributes: name, address and telephone number. Next, write a class named Customer that is subclass of Person class. The Customer class should have a data attribute for customer number, and a Boolean data attribute indicating whether the customer wishes to be on a mailing list. Once you have written the classes, write the main program that prompts the user to enter data for each of the Customer objects data attributes and create multiple object of the Customer class. The number of objects to be created is determined by the user. Store the data in the object, then use the objects accessor methods to retrieve each of the object and display them on the screen in a tabular form.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!