< Day Day Up > |
Interfaces can add a great deal of structure and uniformity to an application and, at the same time, allow us to use polymorphism, which is one of the great features of an OOP language. It does, however, require a great deal of forethought and application architecture before you even write one single line of code. The benefits of interfaces can best be seen in a large application with many diverse elements. When you are analyzing a business problem and find yourself redefining that same functionality in many different places, you may want to consider an interface. Using an interface also allows you to abstract the details of an implementation so that you can complete one area of programming without knowing or caring about the others defined in the interface. |
< Day Day Up > |