The Freeze Protocol should define the following methods: chill() -> after this method is called temperature() should
Fantastic news! We've Found the answer you've been seeking!
Question:
The Freeze Protocol should define the following methods:
- chill() -> after this method is called temperature() should return the string "chilling".
- thaw() -> after this method is called temperature() should return the string "thawing".
- temperature() -> Return the temperature of the item. Initially, an item is always "thawing".
The Freezer class defines the following methods:
- put(self, item: Feezer) -> put an item in the freezer. Call the item's chill() method.
- take(self, item_name: str) -> take the first item that matches of the specified name out of the freezer. Call the item's thaw() method. You can assume that if an item is asked for it is already in the freezer.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: