FileDocCategorySizeDatePackage
Fruit-prohibit.javaAPI DocExample1511Fri Nov 03 11:01:52 GMT 2006None

Fruit

public class Fruit extends Object

Fields Summary
protected String
name
protected int
size
Constructors Summary
public Fruit(String name, int size)

	this.name = name; this.size = size;
    
Methods Summary
public booleanequals(java.lang.Object o)

	if (o instanceof Fruit) {
	    Fruit that = (Fruit)o;
	    return this.name == that.name && this.size == that.size;
	} else return false;
    
public java.lang.StringtoString()

	return this.name + "(" + size + ")";