class shapedef __init__self )self color ( , , simple subclass inheriting from shape class rectangle(shape)need to call def __init__selfwh )constructor shape __init__self function in self width superclass self height def areaself )return self width*self height rectangle print width print height print area( print color ( construct object instance inherited attribute