October 2018
Beginner to intermediate
736 pages
17h 39m
English
The class that defines what a customer's data structure looks like is very simple, and uses code structures that have already been established in Address and BaseArtisan for all of its properties. Like the relationship of BaseArtisan with concrete Artisan instances, Customer objects are expected to vary significantly in what they can do, and perhaps what data access is allowed across the different components of the system. Once again, we'll start by defining an ABC—BaseCustomer—rather than a concrete Customer class:

The properties of BaseCustomer are:
name, a standard required text line.
billing_address and shipping_address ...