• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Design pattern   builder 20131115
 

Design pattern builder 20131115

on

  • 304 views

 

Statistics

Views

Total Views
304
Views on SlideShare
304
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Design pattern   builder 20131115 Design pattern builder 20131115 Presentation Transcript

    • Design Pattern - Builder Bryan Lin 2013/11/15
    • Agenda • • • • Definition UML diagram Participants Sample code in C#
    • Definition • Separate the construction of a complex object from its representation so that the same construction process can create different representations
    • UML diagram
    • Participants • Builder (VehicleBuilder) o specifies an abstract interface for creating parts of a Product object • ConcreteBuilder (MotorCycleBuilder, CarBuilder, ScooterBuilder) o constructs and assembles parts of the product by implementing the Builder interface o defines and keeps track of the representation it creates o provides an interface for retrieving the product • Director (Shop) o constructs an object using the Builder interface • Product (Vehicle) o represents the complex object under construction. ConcreteBuilder builds the product's internal representation and defines the process by which it's assembled o includes classes that define the constituent parts, including interfaces for assembling the parts into the final result
    • Sample code in C#
    • Sample code in C#
    • Sample code in C#
    • Sample code in C#
    • Sample code in C#
    • FAQ
    • References http://www.dofactory.com/Patterns/PatternBuild er.aspx