Question
INSTRUCTION: ANSWER QUESTION 3. Question 2. Sketch a Class Diagram for creating different types of Stores for a Megamall based on Factory Pattern. Specification: I.
INSTRUCTION: ANSWER QUESTION 3.
Question 2.
Sketch a Class Diagram for creating different types of Stores for a Megamall based on Factory Pattern.
Specification:
I. The stores are: PC Store, Food Store, Drink Store, Stationery Store, Grocery Store.
II. Every Store class has a "customer" method.
III. The class StoreClient will use the factor class to create different types of Stores.
Requirements:
a. Show the operations/methods in every class.
b. Draw the dependency between the classes.
Question 2 Answer:
QUESTION 3.
Construct a Package Diagram to illustrate the package organization for the Megamall contains different Stores as indicated in Question 2 using the Model-View-Controller architecture pattern.
Provided that,
I. Model with packages: User, StoresSchedule, Price.
II. View with packages: StoresSchedulePage, PricePage.
III. Controller with packages: CustomerCheckin, CustomerCheckout
You can include any extra features and make your own assumption to improve the Diagram.
Megamall no. of storese no. of customer open() Store client Factory oftent Type of Stone no. of stores. Catogory Type-Stove store-Name() create_store !) Food Store Drink Store PC store Grocery Store type Brand price Brond price Type Type Brand price stationary store Type Brand Price Add item. Isolditems) totalidems Type Brand Price Additemsc) Isolditema) total items) TAdd items Sold items Holalitems! ! AddItemsil sold items) Totalitenes Add Items() Sold Item() Total ItemosStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started