An open API service indexing awesome lists of open source software.

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.

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