FruitBazaar is a console-based Java application that simulates a fruit shop. Users can select from apples, strawberries, and mangoes, input quantities, and generate a bill. This project demonstrates core OOP concepts such as inheritance, polymorphism, and upcasting.
- Fruit selection with quantity input
- Bill generation based on fruit type and quantity
- Upcasting to
Fruitsuperclass - Method overriding for displaying fruit details
- Simple console-based user interaction
- Java (JDK 8+)
- Object-Oriented Programming (OOP)
Press 1 for Apple Press 2 for Strawberry Press 3 for Mango
Enter Your Choice : 1 Enter Quantity : 3
--------Displaying Fruit Details : -------- Price : 50 per kg Quantity : 3 kg Taste : sweet Color : red
------The Bill Is Generating : ------ Total Bill : Rs150
- Clone the repository:
git clone https://github.com/your-username/FruitBazaar.git