Skip to content

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.

Notifications You must be signed in to change notification settings

Katkargaurav09/FruitBazaar---A-Java-Fruit-Store-Billing-System

Repository files navigation

🍎 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:
git clone https://github.com/your-username/FruitBazaar.git

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages