Ir a contenido


MENSAJE DE BIENVENIDA Foro vínculado con Twitter, más info aquí.

“El secreto para progresar es empezar por algún lugar. El secreto para empezar por algún lugar es fragmentar tus complejas y abrumadoras tareas de tal manera que queden convertidas en pequeñas tareas que puedas realizar y entonces simplemente comenzar por la primera.” - Mark Twain

Foto

Ejemplo del Patrón de Diseño Strategy


  • Please log in to reply
No replies to this topic

#1 Alberto Dominguez

Alberto Dominguez

    Gurú

  • Administradores
  • 1.059 Mensajes:
  • LocationMadrid

Escrito 22 agosto 2010 - 14:34

El patrón Strategy permite mantener un conjunto de algoritmos de los que el objeto cliente puede elegir aquel que le conviene e intercambiarlo según sus necesidades. Fuente:Wikipedia


Os dejo código de ejemplo y el diagrama de clases UML del patrón de diseño Strategy:

Imagen enviada

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PatronStrategy
{
    public interface IComportamientoFrenos
    {
        void Frenar();
    }
    public class FrenadoABS : IComportamientoFrenos
    {
        public void Frenar()
        {
            Console.WriteLine("Frenando con Frenos ABS");
        }
    }
    public class FrenadoNormal : IComportamientoFrenos
    {
        public void Frenar()
        {
            Console.WriteLine("Frenando con Frenos Normales");
        }
    }
    public class Coche
    {
        protected IComportamientoFrenos comportamientoFrenos {get;set;}
        public void Frenado()
        {
            comportamientoFrenos.Frenar();
        }
    }
    public class CocheAntiguo : Coche
    {
        public CocheAntiguo()
        {
            comportamientoFrenos = new FrenadoNormal();
        }
    }
    public class CocheNuevo : Coche
    {
        public CocheNuevo()
        {
            comportamientoFrenos = new FrenadoABS();
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            CocheAntiguo coche1 = new CocheAntiguo();
            CocheNuevo coche2 = new CocheNuevo();
            coche1.Frenado();
            coche2.Frenado();
            Console.ReadLine();  //Pausa
        }
    }
}

Saludos,

Alberto Dominguez

Enterprise Architect y Trainer
MCT, MCPD, MCITP, MCITP Dynamics, MCSE, MCSA, MCTS, MCP...
ITIL V3 Foundation Qualification in IT Service Management
Imagen enviadaPerfil Profesional Imagen enviadaTwitter
Imagen enviadaImagen enviadaImagen enviadaImagen enviada

#2 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 14:37

Felicity Jones

(2017) WEB-DL 720p | 50 fps
Silence in the season 04 episode 08
Halle Berry


Trilli e il grande salvataggio DOWNLOAD ITA (2010)

Vypnout statistiky
02. Episodio 05×02 : Strangers
La Casa Del Panico BluRay MicroHD
Programming Books Collection (C++, C, Python, Java, etc.)



The BFG / BFG: Bardzo Fajny Gigant 2016 2016

Season 2 Episode 4 The 2 Deaths Of Jamie. B
Jolly LLB 2 (2017) Hindi 1CD Desi pDVD x264 AAC


All Trending This Week

Repack RME v1.1
windows xp
talent show
Iletisim
Putlocker in HD


Gillian Robespierre

Смотреть онлайн
Mr. Creative


#3 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 17:24

lucy movie french

Windows 10 Pro TH2 v.1511...
Justin Bieber


Web Development with Node.JS and MongoDB

Love & Hip H...S06E13
El Ultimo Dragon
The Adventures Of Figaro Pho
Teenage Mutant Ninja Turtles
Gaiking Legend of Daiku-Maryu DOWNLOAD ITA (2005)



Miles to G..(2016)

Katy Perry
The Red Tent
Yves O'Hara


harga gamis sambelado

ver El futuro ya no es lo que era (2015) pelicula completa
Beware the Batman
HOUSE KOPLO = Cintai Aku Karena Allah = Suliana


Hoy soy nadie

Teen Wolf
Corpse Party Live Action (2015)
Simpsons
view all


#4 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 17:33

Two and a Half Men S11E06 HDTV x264 AAC-LOL

???? (????; Limitless) - NCT 127
Historyczne
E14 Day 12


K-On! Blu-ray + Movie [Sub Indo]

Dance Moms
Martin Starr
Strike the Blood
Rang Da Tu Song Mp3



BitLord.com

Far Cry 4 v1.6 + DLCs
Ridiculousness Season 9 Episode 25
Devil May Cry


Дарина Галицька

Tales of Zestiria X
Bolum 18
iZombieS3-E112017-06-13
Girls Negative Attitude Quotes
OpenLoadHD


Motive 7.5

Streamango
Tenu Pyar Toh Vadh K Meh Pyar Kraaa Mp3
ios Elvis Nixon (2016) descarga


#5 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 17:37

31.05.2017

mkv Torrents
Варго Александр - Молитва Отверженного (2017) MP3
Akatsuki no Yona


Wilburcax

Megadeth Discography (1985-2014)
Ada Apa dengan Cinta? (2001)



open: /home/dolob/public_html/starstablehacksz.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php

E4 Day 3
Planet Earth


Razz Games

Aventura
Peter Tosh


Francesca Le Is A Hotwife 2 XXX DVDRip x264-Pr0nStarS

Гримм (5 сезон)
pelicula La guerra del Planeta de los Simios (2017) descarga completa
Biography


#6 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 17:54

torrent_details

The Neighbor
Mumtaz Molai New Album No 18 2016 Mukhi Maf Kajan Mp3
New Zealand
Shinya Hamazoe
Animals Of Farthing Wood


American HousewifeВ 

Moana 2016 BDRip x264-SPARKS
Rings BluRay-Screeener
pelicula Animales fantasticos y donde encontrarlos (2016) descarga completa
DJ Khaled - I'm the One ft. Justin Bieber, Quavo, Chance the Rapper, Lil Wayne



Skylanders SWAP Force (Wii) 2013

A voix haute - La force de la parole 2017 DVDrip French Movies
Yami no Matsuei


Recore-T0X1C

The Rage Carrie II 1999 BRRip XviD MP3-RARBG
Valkiria (2008) - Ingles subtitulada
Better off Ted - Die Chaos AG


Dark Forest - Dawn Of Infinity [2011]

hath ma 6e wiski gujarati music ringtones
Brie Larson
ARN – Der Kreuzritter
The Late Late Show with James Corden S2E187 Episode 187


#7 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 17:55

Mozart's Women, His Family, His Friends, His Music - Jane Glover epub

Watch Video
Charlize Theron
E22 Episode 327 - Escape


Alaska STREAMING ITA (2015)

descargar Aliados (2016) pelicula completa 2016
The Walking Dead - Saison 7 streaming vf gratuit
The Big Bang Theory
Жизнь, по слухам, одна(1 сезон)



Glastonbury 2017 Kate Tempest

A Bela e a Fera Legendado BluRay
The Vampire Diaries
light of chaos private server download
Spitfire_Enigma_2_The_Rapture_KONTAKT.part02.zip
The Lego Batman Movie (2017)


BitLord.com

Red Caps
Main Kisii Ko Nhai Btai Mp3
Top Torrents
doctorhukanna
Rina Ellis (Spunk Surprise for Web Cam Student - 07.09.16)


Download

MacGyver
La regina delle nevi 2 (2014)
Episode 19
Der Fahnder
DD India Live


#8 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 17:55

Dysfucktional

Power Rangers (2017)
Wunschpunsch


Broadchurch 8.1

Bhar Do Jholi Meri Mp3
baby of chucky
The World of Silence
October 2016



X – Die Serie

TurnS04E02
Submerged (2015) 720p HEVC BluRay x265 350MB
junho 2015


vigram new song kanave

Stasis (2017) 282 View
Tenemos la carne
Resident Evil The Final Chapter DOWNLOAD ITA – 720p BluRay (2017)
Pelculas de Comedia completas en Audio Latino ? El novato 2017 Completa Espaol Nuevas
13 (2010)


Share and comment

Bloodline
The Catch
Bunugyi


#9 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 07 julio 2017 - 18:00

Duck Dodgers

Lopez Season 2 Episode 11 s02e11
Mobile & PDA
Nobunagun


Tanya Montana Coe-2015-Silver Bullet

Mega
Unsere kleine Farm



0 comentГЎrios

Koa Por Ella Mp3
June 2017 (880)
Tek War - Krieger der Zukunft
Summer Camp pelicula descargar gratis en espanol
The Godfather: Part II


Alle Foren als gelesen markieren

Tendencias
The Fate of the Furious (Fast and Furious 8) (2017) 720p HDTC -
regarder La Planete des Singes - Suprematie DVDrip
Die Nanny


Jesse Bradford

Californication
Rosewood
Hello Neighbor Alpha V3


#10 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 08 julio 2017 - 00:09

CumLouder - Canela Skin, Susy Gala (A threesome sublime...

Latest Movies
completo
Nagi patrol
Resident Evil: The Final Chapter English: Alice returns to where the nightmare began: The Hive in Raccoon City, where the Umbrella Corporation is gathering its forces for a final strike against the only remaining survivors of the apocalypse. Spanish: Alice regresa a donde comenzo la pesadilla: The Hive in Raccoon City, donde la Corporacion Umbrella esta reuniendo sus fuerzas para una huelga final contra los unicos sobrevivientes del ...
Nero 2014 Platinum 15 0 03500 Final+Crack+Key


No Higher Honor A Memori

Up to 13,000 secretly hanged in Syrian jail, says Amnesty
5 Albums Out Today You Should Listen to Now: Phoenix, Big Thief, Sufjan, Mo...
Young Justice Bao 2
Trickster: Edogawa Ranpo Shounen Tanteidan yori



No Higher Honor A Memori

Rachel Melendez
Betting on Zero 2016 WEB-DL x264-RBG
La double vie d'Eddie McDown S01EP01 Comme un chie...(N) (P)


Eromanga Sensei: Season ...

DMCA & Copyright
mp4
Gra o skarb
Diary Of June (Movie)


Tavern Tycoon - Dragons Hangover v0 21a

The Mystic Nine : Side Story (Movie)
Orchestral Pop
Community
Valkyrie Drive: Mermaid Specials
The Grand Tour


#11 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 08 julio 2017 - 00:15

Frank Dillane

Download
Play Co-op


Kong La Isla Calavera 2017 hd pelГ­cula .avi

Harley and the Davidsons 1. Sezon
Invader Zim
Cuticle Tantei Inaba
Stalker2014
Bakumatsu Gijinden Roman



KГіblic (2016) HDRip Xvid .mp4 megavideo ContraseГ±a Gratis

The Doors (1991) La pelicula
The Good, The Bad, and Pokemon GO!
Lumion Pro 7 1 + Crack
Rolling Love (Go! Fried Rice)


So You Think You Can Dance S14E03 WEB h264-TBS[eztv] mkv

Nine and Half Weeks (1986) +18
pelicula Spider Man Homecoming (2017) descarga completa
Arijit Singh
Festivaller


view all

Register
The Big Short
Industrielle Metallstuhle
Алексей Моисеев


#12 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 08 julio 2017 - 00:34

lightroom

SILKYPIX Developer Studio Pro 8.0.7.0 (x64)
Ariana Grande - Into You


For last day only

Teruko Akatsuki - Tokyo Shoe Shine Boy
Patema Inverted



White Bird in a Blizzard English: Kat Connors is 17 years old when her seemingly perfect homemaker mother, Eve, disappears in 1988. Having lived for so long in an emotionally repressed household, she barely registers her mother's absence and certainly doesn't blame her doormat of a father, Brock, for the loss. But as time passes, Kat begins to come to grips with how deeply Eve's disappearance ...

Jonathan Rhys Meyers
Kelly Family 0.91 - 2017-06-15
Accel World – Infinite Burst


Nacido en Siria (2016) en lГ­nea gratis en movie2k

Bavo Defurne
HDRip 2015 Expedition Unknown · 2015
ISpy (feat. Lil Yachty)
DC Comics
mp4


The Day The Earth Stood Still 2008 1080p BluRay H264 AAC-RARBG

Never Be Like You (feat. Kai)
the sims 4
16. Avicii - The Nights
The Blacklist S02E22 720p HDTV X264-DIME
Shingeki no Kyojin Kohen ~Jiyu no Tsubasa~ (2015) Online


#13 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 08 julio 2017 - 00:37

➤ More

Dark Angel
Спорт
peliculashdmega.com
Season 3 Episode 7 Back to the Rape Well


MissaX 17 06 22 Jessa Rhodes And Kissa Sins If The Eyes Didnt See The Hands W...

Epouvante-horreur
SpongeBob SquarePants



La doncella 2016 dvdrip reloj en lГ­nea

Assistir ? Episodio 20
La La Land (2016) English DVDScr 480p 400mb Download
Broadchurch


Scott Wilson

RahXephon
Shape of You - Ed Sheeran


The Hollow Crown

Which Star Are You From
Season 8
secrets d'histoire
Zwei Singles im Doppelbett


#14 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 08 julio 2017 - 15:08

Архиваторы и файловые менеджеры

Bolum 13
Power Rangers 2017 1080p WEB-DL DD5.1 H264-FGT
Oru Naal Iravil (2015) Tamil Full Movie Watch Online Oru Naal Iravil Full Movie Online Movie: Oru Naal Iravil 2015 Directed by: Anthony Written by: Anthony Starring by:  Sathyaraj , Yugi Sethu Genres: Thriller Country: India Language: Tamil Release Date: 20 November 2015 Oru Naal Iravil Movie Release Date: 20 November 2015 Oru Naal Iravil Watch Online (Single Links – DVDScr) Watch Online – NowVideo Oru Naal Iravil (2015) Tamil Full Movie Watch Online Free Watch Online – Movshare Oru Naal Iravil (2015) Tamil Full ...


How To Brew - Everything You Need to Know to Brew Great Beer - 4E (2017) (Pdf...

yazz nothing but a number
Matthew Bowerman



SoulTaker

New Girl
Bunga Citra Lestari
Die Gentlemen bitten zur Kasse


Rap, Hip-Hop, RB

триллер
World Of Dan...S01E02


film De l'eXcellence Г  l'indГ©cence

Le Conte des sables d'or
Полицейский с рублёвки
UFC 180: Werdum vs. Hunt
Escape From Planet Earth (Movie)
Meghan Trainor


#15 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 09 julio 2017 - 03:50

Senseless 1998 German AC3D Multi Custom BD25 Untouched

Download
American Gods
Shahat Muhammad Anwar Mp3
Naruto Shippuden
Thunder - Imagine Dragons Canciones Discografia


Google Earth Pro 5.0.1337

The Son 1? Temporada Episodio 10 Online – Legendado ( SEASON FINALE )
Wynonna Earp - Saiso
Arrow izle
Next Episode



Stitchers S03E04 WEBRip x264-RARBG

Shadowhunters
Applications
Junction 48 (2016)


Melrose Place (2009)

Despacito (feat. Daddy Yankee) - Luis Fonsi Canciones Discografia
Jessica Biel
Sans?na Ne Gelirse
Andre Wilms
Damien 9.5


Firequake BLuRayRip

Orange Is The New Black
Season 3 Episode 10 The Return (1)


#16 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 12 julio 2017 - 21:48

Lady Midnight

трейлер
Игра в правду (2013) DVD9 | лицензия
Legends2014
The Perfect Insider


Star Wars Republic Commando

Sci-Fi Fantasy
IZombieS03E11
Massilia Sound System - Le Film (2016) film complet
No Angel Video Mp3
Der lange Treck



Юлия Рутберг

28 de marco de 2017
Those Who Kill
Dizinin Sayfas?


異世界魔王と召喚少女の奴隷魔術 第04巻 [ISEKAI MAOU TO SHOUKAN SHOUJO DOREI MAJUTSU VOL 04]

Bloody Monday
Season 3 Episode 7 Back to the Rape Well
1x3 season x episode 13 Reasons Why


Kimi ga Aruji de Shitsuji ga Ore de

Rizzoli and Isles 88
Mudur Ne'apt?n ?


#17 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 13 julio 2017 - 19:30

The White Princess Saison 1

Aunque Estes Con El
Unter Gaunern
Fargo S03E09 - Aporia


Star Wars: The Clone Wars

American Gothic
Japanese



Stephen Stills - 10 albums

Life 2017 1080p WEB DL DD5 1 H264 FGT
Hiiro no Kakera


Big Hero 6 2014 BDRip x264-SPARKS

Read More ...
Os Perdedores Dublado
Lizzie Borden - Kills!


Decline and Fall

Gelbstint kaledu seneli / Saving Santa (2013)
Александр Мельник


#18 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 14 julio 2017 - 20:12

Historia

ver Dunkerque 2017 putlocker en linea gratis
Марчелла (1 сезон)
Mein neuer Freund
Avril 2017 (735)


Darin De Paul,

Duane Forrester – 6 Hours of SEO, Social, Crawling and Authority Webinar
Лили Коллинз



The Art of Walking Barefoot

Heroic Age
Game.Of.Stones.S01E01.FRENCH.WEBRip.x264-RECORDS(A)
Sherlock Holmes 2009 DUAL BDRip AC3 XviD -VIDEODB
Paulo Coelho - The Devil and Miss Prym
All-Star Academy


Hitman & Bodyguard

ClassicaLoid
Create an account
La Vache
Nke Onye Diri Ya Mp3
MiniTool Partition Wizard Professional Edition 10 2 1 + Crack


Hindi Medium (HD Print) (2017)

Gou - Himetachi no Sengoku
Miranda (2009)


#19 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 15 julio 2017 - 19:15

Download

El sentido de un final (Pelicula)
Pandorum L’Universo Parallelo STREAMING ITA (2009)
800 words (season 1, 2, 3)
?????????????


Watch now!

Ntokozo Mbambo
Ein gesegnetes Team
The Challeng...S30E05
Raising Hope



Download

Ardaas (2016) Punjabi Movie Download DVDRip HD
Shin Gojira (2016)
(ver pelculas)
London Philharmonic Orchestra, David Parry, London Philharmonic Choir & The London Chorus
Prison School Live Action (Complete)


Arang (2006)

The Sum of All Fears 2002 1080p BluRay x264 AAC 5 1 - H...
Luis Fonsi & Daddy Yankee
Der Salzbaron
Crouching Tiger, Hidden Dragon: Sword of Destiny English: Still mourning the death of Li Mu Bai, Yu Shu Lien returns to safeguard his sword, the Green Legend. Hades Dai, an underground warlord, sends his lieutenants to steal the sword , with plans to dominate the martial world. A young mysterious swords-woman and the hero with a past, Silent Wolf , comes to Shu Lien's aid, together with a ...


Tarih Filmleri

Constantine2014
Houdini & Doyle
Ek Tha Raja Ek Thi Rani


#20 porsercok

porsercok

    Experto

  • Miembros
  • PipPipPipPip
  • 400 Mensajes:

Escrito 15 julio 2017 - 19:17

6x13 season x episode Grimm

shemale xxx Pink Von Dee - Insane Fuck With Pinky And Brad! (14 06 2017) rq (...
Vidto.me
Non-Bon Voyage
tonymax25
Kaali Latest Telugu Movie Trailer | Latest Telugu Movie Trailer 2..


pull leafy glen shell pdf

Arsene Lupin
E39 Day 35 Highlights
MXGP3 The Official Motocross Videogame Update v20170609...



Guguk KuЕџu – One Flew Over the Cuckoo’s Nest TГјrkГ§e Dublaj izle

Les Tetes De L'Emploi (2016) French AC3 1080p HDLi...(A)
chaap tilak sab
Public Morals


Vai alla ricerca avanzata

Seventh Son (2014) English Full Movie Watch Online Watch Seventh Son 2014 English Online DVDRip Free Full Movie Download Now Seventh Son is a 2014 American fantasy film based on the novel The Spook's Apprentice (titled The Last Apprentice: Revenge of the Witch in America). The story centers on Thomas Ward, a seventh son of a seventh son, and his adventures as the apprentice of the Spook. It is directed ...
El espejo de los otros (2015) reloj libre de la pelicula completa .avi
Arrival (2016)
Raphael Alejandro
Dhua Dhua Sa By Imraan Khan Mp3


Download

Roswell: W kregu taj..
Person of Interest
Full Metal Alchemist
Semi-Charmed Life
DGM - Passing Stages: Live In Milan & Atlanta (2017) BDRip 720p





0 usuarios están leyendo este tema

0 miembro/s, 0 invitado/s, 0 usuario/s anónimo/s