Class SunBear

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

public class SunBear extends Animal
This class defines the nature of the SunBear animal
Author:
Satish Vagulapuram (S544905)
  • Constructor Details

    • SunBear

      public SunBear(String name)
  • Method Details

    • speak

      public void speak()
      Overriding speak method extended from animal
      Specified by:
      speak in class Animal
    • move

      public void move()
      Description copied from class: Animal
      abstract move() - has no implementation
      Specified by:
      move in class Animal
    • add

      public void add()
    • getSunBearAddition

      public double getSunBearAddition(double valueOne, int valueTwo)
      Custom SunBear function
      Parameters:
      valueOne - double input
      valueTwo - int input
      Returns:
      double sum