Question 1aa design pattern can be classified by its scope

Assignment Help PHP Web Programming
Reference no: EM13349355

QUESTION 1

(a) A design pattern can be classified by its scope, which specifies whether the pattern applies primarily to classes or objects. Differentiate between class patterns and object patterns.

(b) Explain each of the following Object Oriented Design Principles. In each case give an example of a design pattern that can be used to apply the principle.

a. Program to an ‘interface' not to an Implementation

b. Classes should be opened for extension but closed for modification (Open Close Principle)

c. Principle of Least Knowledge - Talk only to your immediate friends

(c) Developers should be encouraged to learn and use design patterns. Elucidate why.

QUESTION 2

(a) A class instance can be created using new operator. Why should we use creational design prototypes to create objects?

(b) The factory method is one of the mostly used and one of the more robust design patterns. Discuss on the factory pattern's motivation, intent, associated benefits and drawbacks. Also provide a UML diagram to illustrate a typical implementation.

(c) The Abstract Factory pattern is often makes use of Dependency Inversion principle. Explain the term Dependency Inversion.

QUESTION 3

(a) XYZ news agency is a company which gathers news and publishes them to different subscribers. You have been asked to create an application that will allow the agency to inform right away, when event occurs, its subscribers about the occurrence. The subscribers can receive the news in different ways: Emails, SMS, etc. The solution need to be extensively enough to support new types of subscribers (maybe new communication technologies will appear). Identify the most appropriate GOF design pattern for the above task. Using a UML class diagram illustrate an implementation of a possible solution for the above problem.

(b) Differentiate between the Strategy and State design patterns.

(c) The Adapters can be implemented either as Object adapters or class adapters. Briefly describe each of these adapters.

QUESTION 4

(a) Active Record is one of the two data source architectural patterns covered during the course. Describe this pattern, explaining how it works and when to use it.

(b) PHP Frameworks such as CodeIgniter and Zend are all based on the Model View Controller (MVC) pattern. Very often such frameworks make use of the Front Controllers. Using a diagram explain the purpose of Front Controllers.

(c) Briefly describe three reuse anti-patterns and their refactored solution.

Reference no: EM13349355

Questions Cloud

Question a on january 1 2012 fishbone corporation sold a : question a on january 1 2012 fishbone corporation sold a building that cost 250000 and that had accumulated
Question albuquerque inc gets 24000 shares of marmon : question albuquerque inc. gets 24000 shares of marmon corporation several years ago for 690000. at the acquisition date
Question janice morgan age 32 is single and has no : question janice morgan age 32 is single and has no dependents. she is a freelance writer. in january 2011 janice opened
Question several years ago abrams inc sold 1120000 in bonds : question several years ago abrams inc. sold 1120000 in bonds to the public. yearly cash interest of 9 100800 was to be
Question 1aa design pattern can be classified by its scope : question 1aa design pattern can be classified by its scope which specifies whether the pattern applies primarily to
Question retail outlets purchase snowboards from slopes inc : question retail outlets purchase snowboards from slopes inc. all through the year. however in anticipation of late
Question the subsequent information relate to the grace plc : question the subsequent information relate to the grace plc group of corporation as at 31st october 2012. the
Question the following are partial income statement account : question the following are partial income statement account balances taken from the 31st december 2013 year-end trial
Question problem 1 on 1112 your client received a 14 year : question problem 1 on 1112 your client received a 14 year note for 550000 in exchange for services rendered. the note

Reviews

Write a Review

PHP Web Programming Questions & Answers

  Random integral numbers based on normal distribution

Prepare a system to generate random integral numbers based on normal distribution. Study Data Generator's structure and extend number generation type to activate normal distribution.

  Shopping cart program for web applications class

Shopping Cart program for web applications class. Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for all items.

  Create a web site for an apple farm

Create a web site for an apple farm. Create an HTML5 form allowing visitors to create an account with the site. Account details are to be stored in your MySQL database. Information should be stored in a secure way.

  Develop a dynamic website open university

Develop a dynamic website Open University

  Sample website project

This website consists of three sections: a narrative, a storyboard, and a business Website.

  Online banking application

Designing and developing a web applications The company you are working has secured a contract with a local banking group to develop an ONLINE BANKING APPLICATION using PHP and MySQL.

  Design a dynamic database

Design a dynamic database using Mangodb, html , and php.

  Show the accessibility and usability of website

The webpage must have several menus about country Azerbaijan such as "About Azerbaijan" "History" "Geography" "Landscape" and "Accessibility" menu.

  Implement a web application

Implement a web application called CS320Starter, which is similar to the crowd funding platform Kickstarter where people raise funds for their projects.

  Prepare an ajax enabled web form

Prepare an AJAX enabled web form utilising a ListView control that will allow logged-in staff to list, edit, delete, insert magazine details for magazines from a selected magazine category.

  Create a very simple order system as a web application

Create a very simple Order System as a web application.

  Which of the following jsp expressions is valid

A JSP expression can contain any Java expression that evaluates to a String object, Java object, primitive type, primitive type or Java object

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd