Ruby is more object oriented than 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 separate class – Math.abs(-24)

but,

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

3 thoughts on “Ruby is more object oriented than Java!

  1. Yes. I used Ruby on Rails to develop a sample application. I felt its improved oo features.Is there is any large scale application running in ruby?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s