Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/10

Click to flip

10 Cards in this Set

  • Front
  • Back
Factory
Decision making class that returns several possible subclasses.
Abstract Factory
Creates an innerface to return several families of related objects.
Singleton
Insures there is only one instance of an object and provides a global point of access to that object.
Builder
Assembles a number of objects in various ways depending on the provided data.
Prototype Pattern
Similar to the builder pattern in that the class decides what components will make up the final class. It differs in that classes are constructed by Cloning one or more prototype classes and then changing or filling in the detials of the cloned class depending on the desired behavior.
Adapter
Used wheh we want unrelated classes to work together.

this can be accomplished in two ways
1. through inheritance
2. Object composition.
Class Adaper
Adapter Pattern through inheritance.

Derive a new class from non conforming one and create the need interface we need in the inherited class.
Object Adapter
Adapter Pattern through composition.

Create the a new class with the non comforming class with in it. Creating method to translate the calls with in the new class.
The Bridge
Separate a Class’s' interface from its implementation so you can vary the classes implementation with out changing the client code.
Composite
Used the accommodate a componant that can be composition of objects or a single object.

example:
A Tree Node
a Node can have additional branches or may be a leaf.