ADBRITE ads links
You are here: CodeIdol > Html > Design Patterns > page: 33 34 35 36 37 38 39 40 41 42 43
with the Strategy Pattern
In This Chapter
Extending object-oriented programming
Getting to know abstraction, encapsulation, polymorphism, and inheritance
Switching from "is-a" to "has-a"
Handling tasks using algorithms
Bringing the Strategy pattern to the rescue
A
s you, the design pattern expert, walk into the boardroom of MegaGigaCo, the CEO and members of the board are celebrating their new contract to
design a set of cars in the sedate way you'd expect -- by high-fiving each other and whooping around the room.
"This contract is going to mean a huge amount of income for us," says the CEO, sloshing a little champagne on the boardroom table in his excitement. "All we've got to do is make sure we get the design process right." He turns on the overhead projector, and as several large charts appear on the wall, the CEO says, "Now here's my idea . . ."
"Wrong," you say.
The CEO looks startled, and says, "But if we . . ."
"Nope," you say, shaking your head.
"What . . ."
"Sorry," you tell the CEO and the board, "it's clear you're risking your entire contract by doing things the wrong way. I can see a dozen problems just look- ing at that chart."
You are here: CodeIdol > Html > Design Patterns > page: 33 34 35 36 37 38 39 40 41 42 43
|
|
Related tags
Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......
|
|