Nadpisywanie metody interfejsu i klasy reklamy abstrakcyjnej
Oto kod:
interface hi
{
public void meth1();
}
abstract class Hullo
{
public abstract void meth1();
}
public class Hello extends Hullo implements hi
{
public void meth1(){}
}
Pytanie: Kod się kompiluje i wszystko. Chciałem wiedzieć, że meth1 () w klasie Hello zastępuje to, co meth1 ()? Ont w interfejsie lub ten w klasie abstrakcyjnej i dlaczego?