a class can "extends" a class and "implements" an interface so at the
code below JLabel is a class and Serializable is an interface.
Note:an interface can extend an interface,
e.g
public interface Inteface1{
}
public interface Interface2 extends Interface2{
}
On Feb 19, 7:47 pm, Tanya Dina Ruttenberg <[email protected]>
wrote:
> What is the difference between extends and implements as in
> public class SimpleBeanJLabel extends JLabel
> implements Serializable {
> }
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---