https://github.com/katkargaurav09/fruitbazaar---a-java-fruit-store-billing-system
FruitBazaar is a console-based Java application that simulates a fruit outlet. It allows users to select fruits, input quantities, view cart details, and generate a bill. It demonstrates core Object-Oriented Programming concepts such as inheritance, polymorphism, and upcasting.
https://github.com/katkargaurav09/fruitbazaar---a-java-fruit-store-billing-system
corejava inheritance java javaproject polymorphism upcasting
Last synced: 12 months ago
JSON representation
FruitBazaar is a console-based Java application that simulates a fruit outlet. It allows users to select fruits, input quantities, view cart details, and generate a bill. It demonstrates core Object-Oriented Programming concepts such as inheritance, polymorphism, and upcasting.
- Host: GitHub
- URL: https://github.com/katkargaurav09/fruitbazaar---a-java-fruit-store-billing-system
- Owner: Katkargaurav09
- Created: 2025-03-23T13:29:51.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-23T13:32:40.000Z (12 months ago)
- Last Synced: 2025-03-23T14:30:27.814Z (12 months ago)
- Topics: corejava, inheritance, java, javaproject, polymorphism, upcasting
- Language: Java
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🍎 FruitBazaar - Java Fruit Store Billing System
## 📋 Description
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**.
---
## 🚀 Features
- Fruit selection with quantity input
- Bill generation based on fruit type and quantity
- Upcasting to `Fruit` superclass
- Method overriding for displaying fruit details
- Simple console-based user interaction
---
## 🛠️ Technologies Used
- Java (JDK 8+)
- Object-Oriented Programming (OOP)
---
## Output
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
---
## 💻 How to Run
1. Clone the repository:
```bash
git clone https://github.com/your-username/FruitBazaar.git