Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

=+Is this metric really applicable to what I want to accomplish?

Answered: 1 week ago

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago

Question

1. The evaluation results can be used to change the program.

Answered: 1 week ago

Question

5. To determine the financial benefits and costs of the program.

Answered: 1 week ago