Yandex interview multiple choice problem
From here (http://company.yandex.ru/inside/job/java.xml) - it's a mini-web-job-interview for a java developer for a "Russian Yahoo".
I will translate a problem number 2:
Given
Create a class C, which inherits the functionality of class A and B</div>
I think that none of the choices provides a correct answer, only one is close to being correct but not correct in general. Anybody disagrees?
----------------
Update:
Aftera all these discussions, it turns out yandex is not that bad. However, strictly speaking, none of the answers is correct. Only answer 4 will compile, however, it puts C and B into different branches of the inheritance tree so at best C can reproduce functionality of B, but not inherit it.

And, as clever
lafy pointed out, B is empty, so technically C does reproduce the null functionality of B. Or the lack thereof. No inheritance though. Nope.
I will translate a problem number 2:
Given
interface I { ... }
class A { ... }
abstract class B implements I { }Create a class C, which inherits the functionality of class A and B
<input ... >
<input ... >
<input ... >
<input ... >
<input ... >
I think that none of the choices provides a correct answer, only one is close to being correct but not correct in general. Anybody disagrees?
----------------
Update:
Aftera all these discussions, it turns out yandex is not that bad. However, strictly speaking, none of the answers is correct. Only answer 4 will compile, however, it puts C and B into different branches of the inheritance tree so at best C can reproduce functionality of B, but not inherit it.
And, as clever
