kunjaan wrote:
> What do you mean when you say"Class definitions are executable code".
> How do classes differ from other OO languages?

Inside of the class...end you can have expressions as well as method 
definitions.

class Foo
   x = ARGV.size + 3 + $$     # x is a local var
   define_method :bar do |y|  # define a method using
     x+y                      # a scope that includes x
   end
   p Foo.new.bar(100)         # another expression
end

You can't do that in C++, Java, etc.

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407