The following example below has two interfaces a and b:
interface a { void x();}
interface b extends a {void y();}
Now I implement the above interfaces as classes i and j.
class i implements a{
void x(){
}
}
class j extends i implements b{
void y(){
}
}
When compiling class j, I get the error "Detected loop: type b cannot extend / implement itself or one of its own member types." Can someone please help me understand the problem.
source
share