Shoebill.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.nwmissouri.animalList;
/**
* This class is about Shoebill extends Animal
* @author Gayatri Devabhaktuni
*/
public class Shoebill extends Animal {
public Shoebill(String name){
super(name);
}
@Override
public void speak() {
System.out.println("I'm a Shoebill sound like a Machine Gun!");
}
@Override
public void move() {
System.out.println("When I move, I fly and walk.");
}
// @Override
public void eat() {
System.out.println("I Love eating Fish");
}
public void confess() {
double a = 3.7;
int b = 5;
double c = getShoebillAddition(a, b);
System.out.printf("I know ShoebillAddition! %4.2f plus %d is %4.2f \n", a, b, c);
}
/**
* Custom getShoebillAddtion function
*
* @param valueOne double input
* @param valueTwo int input
* @return double sum
*/
public double getShoebillAddition(double valueOne, int valueTwo) {
return valueOne + valueTwo;
}
public enum Seasons {
FALL,
SPRING,
SUMMER;
}
}