Package edu.nwmissouri.animalList
Class Duck
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Duck
Duck class (derived subclass of the superclass Animal)
- Author:
 - Sandhya Nidigonda
 
- 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintduckEggsProduction(int monthlyEggsProduction, int monthsinYear) Custom Duck function - your class must use a unique function namevoideat()voidmove()abstract move() - has no implementationvoidspeak()abstract speak() - has no implementationvoid 
- 
Constructor Details
- 
Duck
Duck constructor- Parameters:
 name- - the name of this Animal is Duck
 
 - 
 - 
Method Details
- 
speak
public void speak()Description copied from class:Animalabstract speak() - has no implementation - 
eat
public void eat() - 
move
public void move()Description copied from class:Animalabstract move() - has no implementation - 
duckEggsProduction
public int duckEggsProduction(int monthlyEggsProduction, int monthsinYear) Custom Duck function - your class must use a unique function name- Parameters:
 monthlyEggsProduction-monthsinYear-- Returns:
 - int
 
 - 
studentDuck
public void studentDuck() 
 -