On 2009-06-07 17:58:30 -0400, HOSOKAWA Kenchi <[email protected]> said:

interface I
{
        void f(int);
        final void f_twice(int i) { f(i); f(i); }
}

class C : I {...}

(new C).f_twice(1);

If you don't mind about the syntactic difference:

interface I
{
        void f(int);
}

void f_twice(I a, int i) { a.f(i); a.f(i; }

class C : I {...}

f_twice(new C, 1);


--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to