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 IS-A drink, it should inherit the values we defined in the Drink class.
Your Tea class definition should support the following constructor and method:
__init__(self, size, price, style)- constructor that extends the parent class(Drink) 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.
info(self)- 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!