public class ElephantBird
extends Animal
Elephant Bird class derived from animal class
- Author:
- Hemanth Kumar Reddy Pidaparathy
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElephantBird
public ElephantBird(String name)
ElephantBird name
- Parameters:
name
-
-
Method Details
-
speak
public void speak()
Elephant Bird speak
- Specified by:
speak
in class Animal
-
move
public void move()
Elephant Bird move
- Specified by:
move
in class Animal
-
profes
public void profes()