Hej mam problem czy ktos moglby w prosty i doglebny sposob pomoc zrozumiec mi to zadanie.. Gubie sie z this i super..
* Poczatek pliku Test.java ***********/
class A {
void f(){
System.out.print("A ");
}
void g(){
this.f();
}
}
class B extends A {
void f(){
System.out.print("B ");
}
void h(){
super.f();
}
}
class C extends B {
void f(){
System.out.print("C ");
super.h();
}
void g(){
super.g();
}
}
class Test {
public static void main(String[] args){
A a = new A(); a.f(); a.g();
B b = new B(); b.f(); b.g(); b.h();
C c = new C(); c.f(); c.g(); c.h();
}
}
}
/****** Koniec pliku Test.java ***************/