Link to home
Create AccountLog in
Avatar of allelopath
allelopath

asked on

multiple inheritance of interfaces

Java can't have multilple inheritance, but this case appears to contradict that.
Its different with interfaces?



public interface  i1a extends Serializable {}
 
public interface  i1b extends Serializable {}
 
public interface i2 extends i1a, i1b {}
 
public interface i3extends i2 {}

Open in new window

Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

>>Its different with interfaces?

Yes. There's no limit for interfaces
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of allelopath
allelopath

ASKER

A class that does not explicitly extend a class implicitly extends Object.
Does an interface that does not extend or implement another interface have an implicit parent?
No, it's standalone
:-)