An interface extending an interface(II)
12 March 2008Please read the first part of this post to develop some understating of extends and implements.
Can an interface extend an interface? What sense this make?
Yes, interface can extend an interface and this would means reusing the extended interface. Simply stating, the whole extended interface will be part of the interface that is extending the other.
Lets do this:
public inerrface IInterface1 extends IInterface{ …
This actually means, IInterface is part of IInterface1.
You may also extend from more than one interface.
public inerrface IInterface1 extends IInterface,IInterface2{ …
This provides reusability
Related Posts:
- Creating a Thread (implementing Java Runnable Interface)
- An interface extending an interface(I)
- The Thread Class - I
- Threads In Java
- Interface extending Interface
- Behavioral Pattern - Iterator Pattern (Example) - 1
- Generating Interface from a Class
- Creating a Thread (extending Java Thread Class)
- Extract Interface (I)
- Extract Interface (II)
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: An interface extending an interface(II)