From: Wyss Clemens Date: 2001-07-06T14:30:21+09:00 Subject: [ruby-talk:17382] Re: newbee: Java -> Ruby module MyInterface def myInterfaceMeth1(p1) ...code comes here (or not)! end def myInterfaceMeth2(p1, p2) ...code comes here (or not)! end end class MyMerge < MyBase include MyInterface end Now you can either implement the interface methods in the module or (re-) define them in your own class MyMerge. The latter approach is of course closer to Java. Regards Clemens > -----Urspr�ngliche Nachricht----- > Von: uwe.matthaeus@rocksolid.de [mailto:uwe.matthaeus@rocksolid.de] > Gesendet am: Freitag, 6. Juli 2001 07:26 > An: ruby-talk@ruby-lang.org > Betreff: [ruby-talk:17381] newbee: Java -> Ruby > > Hi > > I have the following code in Java: > > class MyMerge implements MyInterface extends MyBase > { > ..... > } > > How can i do that in ruby ? > Thanks in advance ! > > Bye > Uwe >