Package edu.nwmissouri.animalList
Class Dalmatian
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Dalmatian
Dalmatian class (derived subclass of the superclass Animal)
- Author:
- Nikhil Porika
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcal()This method will initialize the values and calls the addition methodvoideat()Determines the animal eatdoublegetDalmatianaddition(double number1, double number2) This method will calculate the addition of two numbersvoidmove()Determines the animal movevoidspeak()Determines the animal speak
- 
Constructor Details- 
Dalmatian
 
- 
- 
Method Details- 
speakpublic void speak()Determines the animal speak
- 
movepublic void move()Determines the animal move
- 
eatpublic void eat()Determines the animal eat
- 
calpublic void cal()This method will initialize the values and calls the addition method
- 
getDalmatianadditionpublic double getDalmatianaddition(double number1, double number2) This method will calculate the addition of two numbers- Parameters:
- number1- it will take the first double value
- number2- it will take the second double value
- Returns:
- it returns the addition of 2 numbers
 
 
-