Class Emu

java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Emu

public class Emu extends Animal
This class defines the nature of the Emu animal
Author:
Venkata Prabhakar Takkellapati (S545407)
  • Constructor Details

    • Emu

      public Emu(String name)
  • Method Details

    • speak

      public void speak()
      Determines the animal speak
      Specified by:
      speak in class Animal
    • move

      public void move()
      Determines the animal move
      Specified by:
      move in class Animal
    • sumOfTwo

      public void sumOfTwo()
      This method will initialize the values and calls the sum method
    • emuSum

      public double emuSum(double first, int second)
      This method will calculate the sum of two numbers
      Parameters:
      first - double value which is passed from sumOfTwo()
      second - int value which is passed from sumOfTwo()
      Returns:
      it returns the sum of two numbers