954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Python Assignment

I have a question in Inheritance(Python):
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 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 mailing list. Demonstrate an
instance of the Customer class in a simple program.
I tried a lot but couldn't really come up with a code that satisfies the question, can someone help me with this???

650U
Newbie Poster
8 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 
pyTony
pyMod
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

Show us one code example you have tried.

For typical class inheritance see:
http://www.daniweb.com/software-development/python/threads/20774/273770#post273770

bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
 

Let's see what you have done, so has to be able to point you in the right direction.

e-papa
Posting Pro in Training
465 posts since Mar 2011
Reputation Points: 23
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: