Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which pattern to use
Message
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01023978
Message ID:
01024046
Views:
18
"Program to the interface, not the implementation"

It will enter in my head someday... ;)

Thanks

>More like create an Interface Class which is implemented by all your concrete classes. Your Factory Object will have a static method which creates an instance of the conrete class but returns it as the Interface Class.
>
>This way your client application doesn't have to have a reference to the actual class but instead has a reference to the interface class. Regardless of how many differenct versions or implementations of your concrete class you have (providing that you're interface never changes) you'll never have to deploy to your client.
Previous
Reply
Map
View

Click here to load this message in the networking platform