Question: Question: Write a class named Person with data attributes for a persons first name, last name, and telephone number. Next, write a class named Customer

Question: Write a class named Person with data attributes for a persons first name, last name, and telephone number. Next, write a class named Customer that is a subclass of the Person class. The Customer class should have a data attribute for a customer number and a Boolean data attribute indicating whether the customer wishes to be on a calling list. Demonstrate an instance of the Customer class in a simple program.

Below is a screenshot of the code i have:

Question: Write a class named Person with data attributes for a persons

When i try to run it, i am getting the below error:

first name, last name, and telephone number. Next, write a class named

I am not sure why it is not working and what is causing this error. If you could explain what is wrong, and how to fix it along with your answer that would be great!

AttributeError: 'Customer' object has no attribute '_Customer_name'. Did you mean: '_Customer_mail

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!