Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Hetvi Vaghela- 100847993 | Somya Babar - 100851536 | Jumaana Aslam - 100778027

Our repository includes a folder labelled as Assignment1. In this folder, there are source files that implement an abstract factory method and a general factory method to create grocery products and set the prices of grocery products. The prices of the grocery products are read from a txt. file within the directory. Apple and Banana factories were created to encapsulate these products and ehance the quality of our software design by applying the Open-Closed Principle. Furthermore, we have a test class that proves the results of our factory method designed program. It creates a Banana Product and an Apple Product using GroceryProduct and GroceryProductFactory properties and reads the prices from a database text file. Moreover, we have a folder that contains the UML Design Diagram for our factory method design pattern implementation.

Below is the screen dump of our succesful test results for this program.

image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages