Study Guide - StudyGuide Question1 Proxy Observer Strategy Composite FactoryObject(AbstractFactory Singleton Decorator State FactoryMethod

Study Guide - StudyGuide Question1 Proxy Observer Strategy...

  • Ryerson University
  • COE 618
  • Test Prep
  • Pakistani
  • 6
  • 50% (2) 1 out of 2 people found this document helpful

This preview shows page 1 - 2 out of 6 pages.

Study Guide Question 1: Proxy Only one object of a Class should exist. Observer The ability to treat a whole and each of its parts and subparts in a uniform way. Strategy Attach additional responsibilities to an object dynamically. Composite Define a one‐to‐many dependency between objects so that when an object changes state, all of its dependents are notified and updated automatically. Factory Object (Abstract Factory) Allow an object to change its behavior when its internal state changes. Singleton Allow an algorithm to vary independently from the clients using it. Decorator Provide a surrogate or placeholder for another object to control access to it. State A method that manufactures objects of a particular type. Factory Method An object that encapsulates factory methods. Answer: Proxy Provide a surrogate or placeholder for another object to control access to it. Observer The ability to treat a whole and each of its parts and subparts in a uniform way.
Image of page 1
Image of page 2

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture