An interface extending an interface(II)

12 March 2008

Please 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

del.icio.us:An interface extending an interface(II)  digg:An interface extending an interface(II)  spurl:An interface extending an interface(II)  wists:An interface extending an interface(II)  simpy:An interface extending an interface(II)  newsvine:An interface extending an interface(II)  blinklist:An interface extending an interface(II)  furl:An interface extending an interface(II)  reddit:An interface extending an interface(II)  fark:An interface extending an interface(II)  blogmarks:An interface extending an interface(II)  Y!:An interface extending an interface(II)  smarking:An interface extending an interface(II)  magnolia:An interface extending an interface(II)  segnalo:An interface extending an interface(II)  gifttagging:An interface extending an 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)

Leave a Reply