mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
15 lines
524 B
Java
15 lines
524 B
Java
interface FirstParent {
|
|
|
|
default int doSomething() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
interface SecondParent {
|
|
|
|
int doSomething();
|
|
}
|
|
|
|
class <error descr="Class 'SecondParent' must either be declared abstract or implement abstract method 'doSomething()' in 'SecondParent'">FirstSon</error> implements FirstParent, SecondParent {}
|
|
|
|
<error descr="Class 'SecondSon' must either be declared abstract or implement abstract method 'doSomething()' in 'SecondParent'">class SecondSon implements SecondParent, FirstParent</error> {} |