tips.casting
Class Citrus

java.lang.Object
  extended bytips.casting.Fruit
      extended bytips.casting.Citrus
All Implemented Interfaces:
Squeezable
Direct Known Subclasses:
Orange

class Citrus
extends Fruit
implements Squeezable


Field Summary
(package private)  int m_nSourness
           
protected  int numSeeds
           
static int SQUASHY
           
 
Constructor Summary
Citrus()
          Creates a new instance of Citrus
 
Method Summary
(package private)  int getNumSeeds()
          Return the number of seeds in this piece of fruit
 int getSourness()
          return how sour the fruit is
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_nSourness

int m_nSourness

SQUASHY

public static final int SQUASHY
See Also:
Constant Field Values

numSeeds

protected int numSeeds
Constructor Detail

Citrus

public Citrus()
Creates a new instance of Citrus

Method Detail

getSourness

public int getSourness()
return how sour the fruit is


getNumSeeds

int getNumSeeds()
Return the number of seeds in this piece of fruit