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.
Monday, November 3, 2008
lecture 24
1.Discuss the differences between Waterfall model and Extreme Programming.
with the waterfall model, every phase of the the development is a "stand alone" process and require only the staff for the particular phase.Extreme Programming model is an "agile" model that has the ability to respond to change. it involves the whole team, regular testing, pair programming obtain a more powerful and stable system.
with the waterfall model, every phase of the the development is a "stand alone" process and require only the staff for the particular phase.Extreme Programming model is an "agile" model that has the ability to respond to change. it involves the whole team, regular testing, pair programming obtain a more powerful and stable system.
lecture 19
1.HTML and XML were designed for different purposes. Explain a scenario in which XML documents should be interchanged between applications.
suppose you want to transfer your primary school marks to your university application, but the format of the marks is not supported in the university application. you therefore encode the marks to XML document so that the university can understand. XML documents are text based and are easier to read and understand.With XML, data can be exchange between incompatible systems.
suppose you want to transfer your primary school marks to your university application, but the format of the marks is not supported in the university application. you therefore encode the marks to XML document so that the university can understand. XML documents are text based and are easier to read and understand.With XML, data can be exchange between incompatible systems.
Sunday, November 2, 2008
lecture 18
Describe one scenario where Java Reflection can be useful.
a scenario would be that if you are marking a set of projects, the students have implemented their project using different class names, fieldnames, and method names with the same functionality.You cant use JUnit for this scenario as you need to have the classnames, fieldnames and method names to be the same.
a scenario would be that if you are marking a set of projects, the students have implemented their project using different class names, fieldnames, and method names with the same functionality.You cant use JUnit for this scenario as you need to have the classnames, fieldnames and method names to be the same.
lecture 17
Describe the request-response programming model of Servlets using an example.
the client sends a request to the request-response model in the form of a ServletRequest object. The response is send to the client in the form of a Servletresponse object.
For Example: if a client wanted the addtion of two numbers by entering in the browser, the server response with the answer.
2. Why do we need Java Servlets? Aren't static HTML stored in Web Servers good enough?
we need Java Servlets because web content these days keep changing all the time like weather forecasting, news, scores. therefore we need to dynamically update the web page to keep the response up to date.
the client sends a request to the request-response model in the form of a ServletRequest object. The response is send to the client in the form of a Servletresponse object.
For Example: if a client wanted the addtion of two numbers by entering in the browser, the server response with the answer.
2. Why do we need Java Servlets? Aren't static HTML stored in Web Servers good enough?
we need Java Servlets because web content these days keep changing all the time like weather forecasting, news, scores. therefore we need to dynamically update the web page to keep the response up to date.
lecture 13
What is design pattern and why is it useful?
design pattern offers advices, recommendations to developers to solve a problem.It is useful in the same way as a FAQ's page – providing access to problem solutions that someone has already come across.
design pattern offers advices, recommendations to developers to solve a problem.It is useful in the same way as a FAQ's page – providing access to problem solutions that someone has already come across.
lecture 12
1.explain the benefits of using Exception handling API in Java.
exception handling can provide the user with messages that indicate where the error occurred in the method and also provides error handling code that tells you what to do to stop the error from occurring again.
exception handling can provide the user with messages that indicate where the error occurred in the method and also provides error handling code that tells you what to do to stop the error from occurring again.
Subscribe to:
Posts (Atom)