Class Cheetah

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

public class Cheetah extends Animal
Cheetah class (derived subclass of the superclass Animal)
Author:
Srilekha Janagam
  • Field Summary

    Fields inherited from class edu.nwmissouri.animalList.Animal

    gender, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    Cheetah constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    double
    getCheetahAddition(double valueOne, int valueTwo)
    Custom Cheetah function - your class must use a unique function name unique first parameter identifier unique second parameter identifier do something creative
    void
    abstract move() - has no implementation
    void
     
    void
    abstract speak() - has no implementation

    Methods inherited from class edu.nwmissouri.animalList.Animal

    getGender, getName, setGender

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Cheetah

      public Cheetah(String name)
      Cheetah constructor
      Parameters:
      name - - the name of this Cheetah
  • 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
    • diet

      public void diet()
    • profess

      public void profess()
    • getCheetahAddition

      public double getCheetahAddition(double valueOne, int valueTwo)
      Custom Cheetah 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