Class Panthera

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

public class Panthera extends Animal
This Class extends Animal class
Author:
Pinninti Harshika
  • Field Summary

    Fields inherited from class edu.nwmissouri.animalList.Animal

    gender, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    This is parameter constructor which initialize the instance variables according to parameters passed
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getPantheraAddition(double valueOne, int valueTwo)
    adds the two numbers
    void
    This method prints the logarithm value of a number prints the logarithm value
    void
    This is move method which is used to to print the message print the statement that describes the Panther movements
    void
    multiplication(int a, int b)
    This method prints the multiplication of two numbers prints the Multiplication value
    void
    profess calls the two numbers calls the function getPantheraAddition
    void
    This is speak method which is used to to print the message print the statement

    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

    • Panthera

      public Panthera(String name)
      This is parameter constructor which initialize the instance variables according to parameters passed
      Parameters:
      name - is passed to the constructor super constructor is used
  • Method Details

    • speak

      public void speak()
      This is speak method which is used to to print the message print the statement
      Specified by:
      speak in class Animal
    • move

      public void move()
      This is move method which is used to to print the message print the statement that describes the Panther movements
      Specified by:
      move in class Animal
    • logarithm

      public void logarithm()
      This method prints the logarithm value of a number prints the logarithm value
    • multiplication

      public void multiplication(int a, int b)
      This method prints the multiplication of two numbers prints the Multiplication value
      Parameters:
      a -
      b -
    • getPantheraAddition

      public double getPantheraAddition(double valueOne, int valueTwo)
      adds the two numbers
      Returns:
      double value
    • profess1

      public void profess1()
      profess calls the two numbers calls the function getPantheraAddition