Interface is one of the mechanism to implement design by contract
Interface illustrate the power of abstraction
1. Decoupled systems i.e clients from server
2. Separate design from implementation
3. No performance penalty
Use
1. PITL (Programming in the large)
Interface between the layers.
2. Polymorphism
You should know about
1. IClonable
2. IComparer defines objects that overrides default sorting process.
3. IComparable defines contract for sorting.
4. IDisposable
Saturday, October 18, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment