Skip to content

shahmeer-codes/WildEcho-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🐾 WildEcho

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.

✨ Features

  • Interactive menu-driven console application
  • Abstract Animal class
  • 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

📂 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

🚀 Technologies

  • Java
  • Object-Oriented Programming
  • Scanner
  • Packages

📚 OOP Concepts Demonstrated

  • Abstraction
  • Inheritance
  • Method Overriding
  • Runtime Polymorphism
  • Constructors
  • Encapsulation
  • Arrays of Objects
  • Enhanced For Loop
  • Switch Statements
  • Input Validation

▶️ How to Run

  1. Clone the repository.
git clone https://github.com/your-username/WildEcho.git
  1. Open the project in your preferred Java IDE.

  2. Compile and run Main.java.

📸 Sample Output

=================================
      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!
------------------------------

🎯 Learning Goals

This project was created to strengthen my understanding of Java fundamentals and Object-Oriented Programming by applying concepts in a practical, menu-driven application.

🤝 Contributions

Suggestions and improvements are always welcome. Feel free to fork the repository and submit a pull request.

📄 License

This project is available under the MIT License.

About

A Java console application demonstrating abstraction, inheritance, method overriding, runtime polymorphism, arrays of objects, and menu-driven interaction through a forest animal simulator.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages