Universität Bonn, Seminar Component and Aspect Engineering WS 2003/2004, Dirk Schiele 9 A B C C.xD.x D.y C.x GD FE D.x D.y Interface Introduction l Beispiel: class A { void n() { print( A.n() ); }} class B extends A { void m() { print( B.m() ); }} class C extends B { public void x() { print( C.x() ); }} class D extends B { public void y() { print( D.y() ); } public void x() { print( D.x() ); }} class E extends C {} class F extends D { void n() { print( F.n() ); }} class G extends B { void n() { print( G.n() ); }} interface I { void x(); void y(); } I.y aspect M { declare parents: C implements I; declare parents: D implements I; public void I.y() { print( I.y() ); } } IA B C C.xD.x D.y C.x GD FE D.x D.y
{}