Class Gerenuk

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

public class Gerenuk extends Animal
Gerenuk class (derived subclass of the superclass Animal)
Author:
Tejaswini Challa
  • Constructor Details

    • Gerenuk

      public Gerenuk(String name)
      Gerenuk constructor
      Parameters:
      name - - the name of this Gerenuk
  • Method Details

    • speak

      public void speak()
      Description copied from class: Animal
      abstract speak() - has no implementation
      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
    • size

      public void size()
    • place

      public void place()
    • profess

      public void profess()
    • getGerenukAddition

      public double getGerenukAddition(double valueOne, int valueTwo)
      Custom Gerenuk function - your class must use a unique function name unique first parameter identifier unique second parameter identifier do something creative
      Parameters:
      valueOne - double input
      valueTwo - int input
      Returns:
      double sum