Creating your own interfaces is very useful in designing custom events, and if you have some common property that you want to force certain types of objects to have before they are allowed to be used...
Type: Posts; User: helloworld922
Creating your own interfaces is very useful in designing custom events, and if you have some common property that you want to force certain types of objects to have before they are allowed to be used...
An interesting point about interfaces, their declaration and implementation gets inherited along with the super class.
public class Cat implements Predator
{}
public class Lion extends Cat ...
The specialty about interfaces is that you can have multiple interfaces be implemented by a single class. In standard Java inheritance you are only allowed to inherit from one super class (a fancy...