Class Puma

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

public class Puma extends Animal
This class defines the nature of the Puma animal
Author:
Sai Kaushik Beeram (S545124)
  • Constructor Details

    • Puma

      public Puma(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
    • calculation

      public void calculation()
      This method will initialize the values and calls the sum method
    • getPumaAddition

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