Interfaces
- are special kinds of abstract classes that :
- can’t have any implementation,
- must be “implemented” by the classes that use them,
- used instead of C++’s multiple inheritance,
- sometimes they are used to “tag” instances,
- often, have an -able ending (Throwable, Cloneable etc).
class Star extends Shape implements Drawable{
public void draw() { …... }