Question: Tea class The Tea.py file will contain the class definition of a tea drink. Since a tea IS - A drink, it should inherit the
Tea class
The Tea.py file will contain the class definition of a tea drink. Since a tea ISA drink, it should inherit the values we defined in the Drink class.
Your Tea class definition should support the following constructor and method:
initself size, price, style constructor that extends the parent classDrink constructor and sets the style of tea for example, Camomile, Mint, English Breakfast, etc. as an attribute to the Tea class.
Note, you may assume the style parameter is a str
In order to avoid code duplication, you must explicitly utilize the base class constructor to set the size and price attributes.
infoself method should override the inherited info method in the Drink class, and returns a str with the properties of a Tea object.
In order to avoid code duplication, you must explicitly utilize the base class info method to construct the Tea objects information.
An example of what the return string format of the info method is shown below:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
