java translation into Ruby

M

Muhammed Baykal

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top