WildEcho is a Java console application built to demonstrate the core principles of Object-Oriented Programming (OOP). The project simulates a forest where users can explore different animals and hear their unique sounds while learning how abstraction, inheritance, and runtime polymorphism work in Java.
- Interactive menu-driven console application
- Abstract
Animalclass - Inheritance using multiple animal classes
- Method overriding
- Runtime polymorphism
- Arrays of objects
- Input validation with
Scanner - Display information about each animal
- View all animals at once
- Clean and modular project structure
WildEcho/
│
├── src/
│ │
│ ├── animals/
│ │ Animal.java
│ │ Cat.java
│ │ Dog.java
│ │ Lion.java
│ │ Tiger.java
│ │ Elephant.java
│ │ Horse.java
│ │ Wolf.java
│ │ Fox.java
│ │ Monkey.java
│ │
│ ├── app/
│ │ Forest.java
│ │
│ └── Main.java
│
├── README.md
└── .gitignore
- Java
- Object-Oriented Programming
- Scanner
- Packages
- Abstraction
- Inheritance
- Method Overriding
- Runtime Polymorphism
- Constructors
- Encapsulation
- Arrays of Objects
- Enhanced For Loop
- Switch Statements
- Input Validation
- Clone the repository.
git clone https://github.com/your-username/WildEcho.git-
Open the project in your preferred Java IDE.
-
Compile and run
Main.java.
=================================
Welcome to WildEcho
=================================
========= Animals =========
1. Cat
2. Dog
3. Lion
4. Tiger
5. Elephant
6. Horse
7. Wolf
8. Fox
9. Monkey
10. Show All Animals
0. Exit
Choose an animal: 4
------------------------------
You selected: Tiger
Name : Tiger
Habitat : Jungle
Food : Meat
Life Span : 20 years
Danger Level : High
Sound : Grrrr!
------------------------------
This project was created to strengthen my understanding of Java fundamentals and Object-Oriented Programming by applying concepts in a practical, menu-driven application.
Suggestions and improvements are always welcome. Feel free to fork the repository and submit a pull request.
This project is available under the MIT License.