TauntingTiger.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 extends Animal class
* @author Sarath Arrepu
*/
public class TauntingTiger extends Animal {
/**
* This is the parametrized constructor
* @param name
*/
public TauntingTiger(String name) {
super(name);
}
/**
* This method is about the animal speaking
*/
@Override
public void speak() {
System.out.println("I roar");
}
/**
* This method is about the animal movement
*/
@Override
public void move() {
System.out.println("I hunt");
}
/**
* This method returns value by multiplying two values
*/
public double amul(double a,double b){
return a*b;
}
/**
* This method returns value by adding two values
*/
public double amuladd(double a,double b){
return a+b;
}
/**
* This method is about the animal eating
*/
public void eat() {
System.out.println("I eat meat");
}
/**
* This method is about the animal type
*/
public void type() {
System.out.println("I am a wild animal");
}
}