tips.casting
Class Fruit

java.lang.Object
  extended bytips.casting.Fruit
Direct Known Subclasses:
Apple, Citrus

class Fruit
extends java.lang.Object

Base class for the encapsulation of fruit.


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

Field Detail

numSeeds

protected int numSeeds
Constructor Detail

Fruit

public Fruit()
Creates a new instance of Fruit

Method Detail

getNumSeeds

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