程序代写代做代考 javascript Java AbstractFood – cscodehelp代写

AbstractFood

JavaScript is disabled on your browser.

Skip navigation links

Package
Class
Tree
Deprecated
Index
Help

All Classes

SEARCH:

JavaScript is disabled on your browser.

Summary: 
Nested | 
Field | 
Constr | 
Method

Detail: 
Field | 
Constr | 
Method

 

Class AbstractFood

java.lang.Object

AbstractFood

All Implemented Interfaces:
Food

Direct Known Subclasses:
Fries, Potato

public class AbstractFood
extends java.lang.Object
implements Food

This class holds common food implementation

Constructor Summary

Constructors  Constructor Description
AbstractFood()  

Method Summary

All Methods Instance Methods Concrete Methods  Modifier and Type Method Description
void cook​(int temperature,
int duration)
Cook this food item by applying heat for a time, potentially changing its state

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AbstractFood

public AbstractFood()

Method Detail

cook

public void cook​(int temperature,
int duration)

Description copied from interface: Food

Cook this food item by applying heat for a time, potentially changing its state

Specified by:
cook in interface Food
Parameters:
temperature – The (constant) temperature to cook at in degrees Celsius
duration – The length of time in minutes to cook the food

Skip navigation links

Package
Class
Tree
Deprecated
Index
Help

All Classes

JavaScript is disabled on your browser.

Summary: 
Nested | 
Field | 
Constr | 
Method

Detail: 
Field | 
Constr | 
Method

Leave a Reply

Your email address will not be published. Required fields are marked *