Your SlideShare is downloading. ×
Prototype
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Prototype

2,965
views

Published on

Published in: Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,965
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Patrón creacional Prototype (Prototipo)
  • 2. Definición • Este patrón de diseño, crea nuevos objetos duplicándolos, clonando una instancia creada previamente.
  • 3. Diagrama UML
  • 4. Clases y objetos que participan en este patrón: • Prototype ▫ Declara una interface para clonarse a si misma. • ConcretePrototype ▫ Implementa una operación para clonarse a si misma. • Client ▫ Crea un nuevo objeto haciendo un prototipo para clonarse a si mismo.
  • 5. Ejemplo en C# El siguiente código muestra el modelo creacional del prototipo en el que se crean nuevos objetos copiando los objetos pre-existentes (prototipos) de la misma clase.
  • 6. Fuentes http://www.dofactory.com/Patterns/Patterns.aspx