Class Mammal

java.lang.Object
edu.pdx.cs410J.lang.Animal
edu.pdx.cs410J.lang.Mammal
Direct Known Subclasses:
Cow, Human, Sheep

public abstract class Mammal extends Animal
This class represents all mammals.
  • Constructor Details

  • Method Details

    • giveMilk

      public void giveMilk()
      All mammals can produce milk