程序代写代做代考 javascript Java Script is disabled on your browser. – cscodehelp代写

Script 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 Fries

java.lang.Object

AbstractFood

Fries

All Implemented Interfaces:
Food

public class Fries
extends AbstractFood

These are frenched potato sticks on a plate. They can be raw, cooked, twice-cooked, or burnt.

Constructor Summary

Constructors  Constructor Description
Fries()
Creates a default plate of fries.

Method Summary

All Methods Instance Methods Concrete Methods  Modifier and Type Method Description
java.lang.String toString()
Outputs the state of these fries

Methods inherited from class AbstractFood

cook

Methods inherited from class java.lang.Object

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

Constructor Detail

Fries

public Fries()

Creates a default plate of fries. They cook at any temperature greater than 230 degrees Celsius for more than 10 minutes,
and burns at any temperature greater than 300 degrees Celsius or more than 20 minutes.

Method Detail

toString

public java.lang.String toString()

Outputs the state of these fries

Overrides:
toString in class java.lang.Object
Returns:
If raw (not cooked or burnt): “This is a plate of raw french fries.”

If cooked once (not burnt): “This is a plate of toasty french fries.”

If cooked twice or more (not burnt): “This is a plate of toasty french fries. They went in the oven twice – now they’re double cooked chips and a hipster pub can overcharge you for them.”

If burnt: “This is a plate of blackened french fries.”

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 *