‎2009 Nov 24 11:57 AM
How one interface can extend another interface?
In classes we can use INHERITING FROM but this is not working in case of interface. Is there anyother solution
‎2009 Nov 24 1:57 PM
I think you want to use nesting of interfaces.
Please refer http://help.sap.com/saphelp_nw70/helpdata/EN/c3/225b6254f411d194a60000e8353423/frameset.htm
- section Nesting Interfaces
- section Interfaces and Inheritance -> this of course is not abouth inheritance (as this is not possible from interface) but about polymorphism via interfaces.
Regards
Marcin
‎2009 Nov 24 12:59 PM
Looks like you are using a local class, correct? Like in a class you can also add an interface to your interface. But you can also add several interfaces to your class.
What is it you are trying to accomplish here? In classes obviously the inheritance is used to specialize the subclass(es). But in your case I don't see why you would want to have something alike. Interfaces do not use inheritance.
‎2009 Nov 24 1:57 PM
I think you want to use nesting of interfaces.
Please refer http://help.sap.com/saphelp_nw70/helpdata/EN/c3/225b6254f411d194a60000e8353423/frameset.htm
- section Nesting Interfaces
- section Interfaces and Inheritance -> this of course is not abouth inheritance (as this is not possible from interface) but about polymorphism via interfaces.
Regards
Marcin
‎2009 Nov 24 2:09 PM
Interface doesn't represent the actual object unless you implement that interface in the class. So, you can't inherit the interface with another interface.
You can implement this interface in the class say Super Class and inherit your a Sub class from this Super Class. In the Sub Class, you can implement a new interface which is only specific to subclass.
Regards,
Naimesh Patel