hi friends
I have an interface that is implemented by 100 classes, if I add a method to the interface will my classes compile? How can I fix any errors?
All the implementing classes will not compile. An interface is a contractual obligation. By implementing that interface you are guaranteeing that your class will fulfill its contractual obligation. If you add a new method to an interface then, by definition, all classes implementing that interface will have to implement the new method.
lets say you have an interface IInterface which is implemented by 100 classes.
Now u wana add a method to the interface but not all of the implemented classes need to add the method.
Create another interface lets say ISubInterface implements IInterface