0
java interface
But how if two interface extends and how we implement the method,as i known interface will cause its method abstract
1 Réponse
+ 1
If you want to implement two interfaces you can do:
implements ActionListener, MouseListener
If you implement you need to import all the methods of that interface. But if you only want to import one method of that interface you will have to use MouseAdapter instead of MouseListener and then we use the extends keyword instead:
extends MouseAdapter
If you use any IDE you can choose to import all of the methods so you dont have to write it by your self