Package edu.nwmissouri.animalList
Class Okapi
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Okapi
This class defines the nature of the Okapi animal.
- Author:
- Pranay bhargav reddy bakaram(s545147)
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddition()voideat()doublegetOkapiAddition(double x, int y) This method will calculate the sum of two numbersvoidmove()abstract move() - has no implementationvoidspeak()abstract speak() - has no implementation
- 
Constructor Details- 
Okapi
 
- 
- 
Method Details- 
speakpublic void speak()Description copied from class:Animalabstract speak() - has no implementation
- 
movepublic void move()Description copied from class:Animalabstract move() - has no implementation
- 
eatpublic void eat()
- 
additionpublic void addition()
- 
getOkapiAdditionpublic double getOkapiAddition(double x, int y) This method will calculate the sum of two numbers- Parameters:
- x- double value which is passed from addition()
- y- int value which is passed from addition()
- Returns:
- it returns the sum of two numbers
 
 
-