Skip to content

NosaibaMokhtar/Pizza-Bill-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pizza Bill Generator System A simple Java application designed to practice and implement Core OOP concepts. This program calculates the final bill for a pizza order based on the user's selections.

Key Features: Pizza Selection: Supports both Veg and Non-Veg pizza types.

Custom Add-ons: Users can add Extra Cheese or Extra Toppings.

Takeaway Option: Includes an option for a backpack/delivery charge.

Delux Pizza: A specialized subclass that comes pre-loaded with extra cheese and toppings at a fixed price.

OOP Concepts Applied: Inheritance: Used to create the DeluxPizza class which extends the base Pizza class.

Method Overriding: Implemented in the DeluxPizza class to disable manual add-ons, ensuring the price remains fixed as per the deluxe package.

Encapsulation: Used private fields to protect sensitive data like pricing logic.

Super Keyword: Utilized to call the Parent class constructor and methods efficiently.

About

Pizza Bill Generator (Java) πŸ• A simple OOP-based application to calculate pizza orders. Features include selecting pizza types (Veg/Non-Veg), adding extra toppings/cheese, and takeaway options. It demonstrates Core Java concepts like Inheritance, Method Overriding, and Encapsulation through a specialized Deluxe Pizza class.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages