< Day Day Up > |
Whereas inheritance is a powerful way of using the relationships between related types to reuse code, interfaces are powerful a way of using commonalities between unrelated types to reuse code. Interfaces are useful to express generalized capabilities that any type can have, and they are used extensively in the .NET Framework for this purpose. Now that we have covered all the major types in the Framework, the next chapter starts a discussion of advanced language topics. First up is a discussion of attributes, which allow programmers to attach user -defined information to types in an assembly. Here are some style points to consider.
|
< Day Day Up > |