ITECH7201 Software Engineering: Java Based Object Oriented Design

Verified

Added on  2023/04/21

|5
|369
|484
Project
AI Summary
This Java project implements an object-oriented system for ARC Pizza & Pasta, allowing the owner to track purchases. The system features a menu-driven text-based interface for adding orders, generating bills, and creating information reports. Key OOP concepts such as inheritance, encapsulation, abstraction, and polymorphism are utilized. Inheritance is demonstrated through the Snack, Pizza, and Pasta classes, with child classes inheriting attributes and methods from the parent class. Polymorphism is achieved by overriding methods in child classes. The project initially used arrays for storing Pizza and Pasta objects but transitioned to ArrayLists for better data management. The design includes UML diagrams, specifically use case, class, and sequence diagrams, to visualize the system architecture and interactions.
Document Page
Running head: OBJECT ORIENTED PROGRAMMING
Object Oriented Programming
Name of the student:
Name of the University:
Author note:
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Table of Contents
Use Case.....................................................................................................................................3
UML Class Diagram..................................................................................................................3
Sequence Diagram.....................................................................................................................4
Reflective Summary...................................................................................................................5
Document Page
Use Case
UML Class Diagram
Document Page
Sequence Diagram
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
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.
chevron_up_icon
1 out of 5
circle_padding
hide_on_mobile
zoom_out_icon
logo.png

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]