What Object Orientated principles did we use in the project?
Encapsulation -the way similar items were grouped together for example the domain, DAO and GUI
Overloading - you could view all the products or products by category
Overriding - the getAll() method was over-ridden with different objects such as Customer, Product.
Aggregation / Composition - an Order involves a Customer and 0-Many Order Items, an Order Item involves a Product and a Shopping Cart involves a Customer and 0-Many Order Items. However, Composition was not used.
Inheritance - the way the DAO's inherited the getAll(), and save methods from Abstract DAO
Design Patterns - in terms of singleton design only one instance of Entity manager was created, and facade design: the DAO classes are facades that provide access to a related set of objects that deal with their storage.
No comments:
Post a Comment