Making of Varcasa.com

Friday, June 30, 2006

Ruby is more Object Oriented then Java !!!

This simple example proves that Ruby is more object oriented than java.

To find absolute of a number,

in Java we need to use a seperate class - Math.abs(-24)

but,

in Ruby abs functionality is built in the number - -24.abs

0 Comments:

Post a Comment

<< Home