Why Interface are used..?
1. An Interface make sure that method must be implemented in the class.
2. It also provide flexibility to the accomplish with the changes that can be possible at any stage of development. so you don't need to alter objects
3. Interface provide a single line of coding, very much understanding for developer, and can be understand easily by client too.
4. Interface may never contain method definition.
5. Interface implement polymorphism behavior of OOPs
6. A standard way of calling routines and passing data structures.
No comments:
Post a Comment