Table of Contents Use Case.....................................................................................................................................3 UML Class Diagram..................................................................................................................3 Sequence Diagram.....................................................................................................................4 Reflective Summary...................................................................................................................5
Use Case UML Class Diagram
Sequence Diagram
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Reflective Summary The program is about a pizza shop where the owner wishes to use the system for the purpose keeping a track of the items that are purchased from her shop. The items that are purchasable are large sized pizza and pastas. The user of this system is presented with a menu driven text-based interface that can be used to add orders, get bills and finally read through a generated information report. The object oriented programming concept has been adapted for this project. Through this program I learned the details of OOP like Inheritance, Encapsulation, Abstraction and Polymorphism. These are very important aspects of real life program implementations in the modern world. The concept of inheritance is used when the snack class and its attributes and methods are supposed to be inherited by the respective child classes like the Pizza and Pasta classes. These classes were made to use a constructor that takes in the default initializing values from the main method in order to create objects and then pass the necessary attributes to the super class constructor. Polymorphism has been achieved as the methods defined in the parent class have been used by the child classes with a varied form of operability. Firstly, I had used arrays to store the objects of the Pizza and Pasta types but it did not seem to turn out to be a good option as I progressed with the program. This was a small hurdle or challenge that I had to overcome. I finally decided to use two different ArrayLists in java that help in the storing and accessing of data easily from them and also allows instant methods to clear the lists. Another interesting turnout was the unique access of the base class methods when inherited by the child classes and accessed through them.