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:
When i try to run it, i am getting the below error:
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_mailStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started