0
What is the use of interface?
4 Antworten
+ 3
java Doesn't Support Multiple Inheritance directly.. we can Extend only one class At a time..
to over come this problem we Use Interface.. Because One interface Can Implements Many Interface.
0
Interface just forces a class to have some methods. That's it I think. I know how to use interfaces but I don't know what they are actually used for. Sorry :D
0
interface are evolved from one of the basic concept of oops i.e. Abstraction.
interface helps to provide a good desing architecture.
when you dont know about method detail but you know that this kind of method must be implemented then at the design level interfaces are helpful.
they restrict the implementor to implement all the method of interface.
0
Interface can be defined as a set of protocols. If you are implementing an interface that means you have to obey the protocols, i.e. you have to define the methods.