Write a class named Person with data attributes for a person’s name, address, and telephone number. Next, write a class
Posted: Mon May 02, 2022 12:44 pm
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
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