Uploaded by obaid khan

OOP Propject Report

advertisement
Pizza Order Placement System
In Java Programming
Submitted to: Sir Mubashir Khan
By:
Ubaid Ahmed Lodhi (FA20-BSSE-0005)
Muhammad Uzair Asif (FA20-BSSE-0020)
(SECTION EM)
1
TABLE OF CONTENT
Serial Number
Contents
1
Description
2
Pillars of OOP
3
Output
2
Page number
03
04
09
DESCRIPTION:
The following project is based upon the Pizza
Order Placement System. It is a console-based
program written in Java using NET BEANS. The
name of the Pizza Shop is U&U PIZZA. It enables
customers to easily place order while sitting on a
couch at their home. They can choose different
types of flavors, and deals. They can ask for extra
toppings or they can select that whether they like
it spicy or non-spicy etc.
There area about 7 Classes Named as:
1.Pizza-Order
2.Pizza
3.Flavors
4.Crust
5.Toppings
6.Side_Desert
7.Receipt
FOUR PILLARS OF OOP:
3
1. ABSTRACTION:
We have made Pizza Class Abstract, This Class
Contains about 5 Variables and One abstract
method named as make_your_choice();
2. ENCAPSULATION:
Encapsulation has been achieved in Receipt
Class, We have made Name (User Name)
Variable Private so due to this we have also
used Getter and Setter Methods.
4
3. INHERITANCE:
Inheritance is applied at three classes named
as:
1) Crust.
2) Flavors
3) Toppings,
These classes are child class of Pizza Class
which is an abstract class as mentioned above.
5
6
4. POLIMORPHISM:
The method make_your_choice(); is using as
performing polymorphism in different classes.
7
8
OUTPUTS:
9
10
11
Download