Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Help!!!

  • 12-05-2014 12:08PM
    #1
    Registered Users, Registered Users 2 Posts: 58 ✭✭


    Any coders know WTF this means and how best to answer it?

    Question 4
    Design patterns are commonly categorised as being creational, structural or behavioural. Regarding
    the following list of design patterns:
     Observer
     Template Method
     Abstract Factory
     Strategy
     Façade
     Decorator
     Adapter
     Factory method

    (a) Identify one creational, one structural and one behavioral design pattern and in each case -
    state briefly why the pattern you identified is regarded as creational, structural or behavioral.
    (6 marks)
    (b) Choosing any three patterns from the above list:
    (i) State how, use of the design pattern - allows for improved code re-use, and/or improved
    flexibility, extensibility (or another design advantage you can identify)
    (12 marks)
    (c) Choosing any one pattern from the above list:
    (i) Give an example implementation of the design pattern in code (i.e. show a complete
    example of the design pattern)
    (9 marks)
    (ii) Write brief notes to describe (or comment) on the code you produce in part (i) to
    explain how the code is an implementation of the design-pattern
    (3 marks)
    Total (30 marks)


Comments

This discussion has been closed.
Advertisement