Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Theoretical question - what is better?
Message
De
08/01/2009 16:30:49
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01337411
Message ID:
01372190
Vues:
26
>>>>>Each method should have one function and one only
>>>
>>>Doesn't "overloading" contradict that idea?
>>
>>No. I believe overloading proves the idea. If I call the car wheel turn method - it does one function. If I call the steering wheel turn method it does one function. It's a matter of perspective of the object.
>
>SteeringWheel.Expand ???
>
>Class SteeringWheel {
>Public Static bool Expand( int DistancePosition)
>{}
>
>Public Static bool Expand(Driver driver)
>{}
>
>)
>
>Now you can use the Expand to go a specific distance in the first load and overload it with an object to pull the distance out of it.

What does Expand MEAN in terms of a steering wheel?

Doesn't that contradict "Simplicity is the ultimate sophistication."?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform