Bases: BaseFruit
BaseFruit
A class representing an apple fruit.
Make an apple pie of a given size.
size (str) – The size of the pie. Default is “medium”.
Bases: Apple
Apple
A class representing a Fuji apple variety.
Make Fuji apple cider of a given size.
size (str) – The size of the cider. Default is “large”.
A class representing a banana fruit.
Make a banana smoothie of a given size.
size (str) – The size of the smoothie. Default is “medium”.
Bases: object
object
A base class for fruits.
name (str) – The name of the fruit.
color (str) – The color of the fruit.
Return a description of the fruit.
A description of the fruit.
str
Contents: