[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

java translation into Ruby

Muhammed Baykal

4/28/2007 3:21:00 PM

hi friends ;
i have recenlty started Ruby;

I have a java source code and it has two interface ;

which are
+widget ,+observer
anologuetimer and digital timer implements both interface

i also have generator class
secondgenerator and minutegenerator are derived from that class

how could you design this structure in Ruby ?

observer{abstract class} ----------------------Generator <interface>
<>---second generator
<>---- minutegenerator

widget<interface>
<>----ana;loguetimer
<>----digitaltimer

============================================
The way this program operates is thus. Generators are objects that
generate messages. These messages are then broadcast out into the world.
For example, the SecondGenerator will send out a message every second
while the MinuteGenerator will send out one every minute


thanks in advance guys

byeee

--
Posted via http://www.ruby-....