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 0 Newbie Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
bumsfeld 413 Nearly a Posting Virtuoso
e-papa commented: Good answer +3
e-papa 13 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.