Greeting all ,
please , can you explain when instantiating an interface is acceptable and reasonable ?
i'm asking due to with my pre knowledge that an interface can't be instantiate .
example :
addMouseListener(new MouseAdapter(){
public void mousePressed(MouseEvent e){
moveSquare(e.getX(),e.getY());
}
});