food.fruit.Apple¶
- class food.fruit.Apple(name='Apple', color='red')¶
A class representing an apple fruit.
- __init__(name='Apple', color='red')¶
Initialize an Apple instance.
- Parameters:
name (str) – The name of the apple variety. Default is “Apple”.
color (str) – The color of the apple. Default is “red”.
Methods
__init__([name, color])Initialize an Apple instance.
describe()Return a description of the fruit.
make_pie([size])Make an apple pie of a given size.