Class Cow

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

public class Cow extends Animal
Cow class (derived subclass of the superclass Animal)
Author:
Harika_Chintala
  • Constructor Details

    • Cow

      public Cow(String name)
      Cow Constructor
      Parameters:
      name - - the name of this cow
  • Method Details

    • eat

      public void eat()
    • speak

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

      public void child()
    • color

      public void color()
    • move

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

      public double getCowAddition(double morningMilkProdection, double eveningMilkProduction)
      Parameters:
      morningMilkProdection - is of type double
      eveningMilkProduction - is of type double
      Returns:
      double value
    • studentCow

      public void studentCow()
    • directionToGo

      public void directionToGo(Cow.EnumDirections d)