public class Goat
extends Animal
- Author:
- Rohan Kondaveeti
-
-
Constructor Summary
Constructors
-
Method Summary
void
void
void
void
abstract move() - has no implementation
void
abstract speak() - has no implementation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
speak
public void speak()
Description copied from class: Animal
abstract speak() - has no implementation
- Specified by:
speak
in class Animal
-
move
public void move()
Description copied from class: Animal
abstract move() - has no implementation
- Specified by:
move
in class Animal
-
-
child
public void child()
-
color
public void color()