Class Unicorn

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

public class Unicorn extends Animal
Author:
Sujithreddy
  • Constructor Details

    • Unicorn

      public Unicorn(String name)
      unicorn constructor
      Parameters:
      name - - the name of this instance of an animal
  • Method Details

    • move

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

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

      public double calculateAreaOfCircle(double radius)
    • getAreaOfCircle

      public double getAreaOfCircle()