Package edu.nwmissouri.animalList
Class Unicorn
java.lang.Object
edu.nwmissouri.animalList.Animal
edu.nwmissouri.animalList.Unicorn
- Author:
- Sujithreddy
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
calculateAreaOfCircle
(double radius) double
void
move()
abstract move() - has no implementationvoid
speak()
abstract speak() - has no implementation
-
Constructor Details
-
Unicorn
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 -
speak
public void speak()Description copied from class:Animal
abstract speak() - has no implementation -
calculateAreaOfCircle
public double calculateAreaOfCircle(double radius) -
getAreaOfCircle
public double getAreaOfCircle()
-