C# Design Pattern Essentials by Tony Bevis

C# Design Pattern Essentials by Tony Bevis

Author:Tony Bevis
Language: eng
Format: mobi
Tags: Design patterns, C# programming
ISBN: 9780956575876
Publisher: Ability First Limited
Published: 2012-11-01T05:00:00+00:00


Until the ignition is switched on, the gearbox, accelerator and brakes do not operate (we will assume the parking brake is in effect);

When accelerating, the brakes should be disabled;

When braking the accelerator should be disabled;

The appropriate gear should be engaged dependent upon the speed of the vehicle.

And all this should happen automatically so the driver can just enjoy the view! (we will assume the vehicle can sense it's position so as to avoid crashes, etc.).

We will naturally create classes to model the individual components, so there will be an Ignition class, a Gearbox class, an Accelerator class and a Brake class. But we can also see that there are some complex interactions between them, and yet one of our core object-oriented design principles is to keep classes loosely-coupled.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.