-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 24 June 2001 16:03, you wrote:
...
> class Person
>   def initalize(name, street, phone, age)
...
> E:\Udvikling\Ruby\Test_001\Person.rb:10:in `initialize': wrong # of
> arguments(4 for 0)(ArgumentError)
...
> What am i doing wrong.... The Person-class should take 4 arguments ,,,
> shouldn't it ??????

You spelled "initialize" wrong.

> And where does the program excecution start ( I'm a Java and C++
> programmer, so i'm used to  "void main" :-))))

Ruby evaluates the code as it goes, so you can assume that it "starts" 
execution at the top of the file.  However, in the case of you're supplied 
code, you can think of execution as starting at the line

   s = Person.new( "Soeren", "My Street", "12345678", "21" )

Still, it will help you immensely if you try to change the way you think 
about Ruby sourcecode and begin believing that lines are "executed" as they 
are encountered, even if they are definitions.  For example:

   $ cat test.rb
   class Test
      puts "Hello"
   end
   $ ruby test.rb
   Hello

You see this sort of example a lot in the Axe book; Ruby is evaluating as it 
goes.

- --- SER   Deutsch|Esperanto|Francais|Linux|Java|Dirigibles|GPG|Pegwit
"Did you ever notice that while MS stands for Microsoft, it also stands
for the dread disease Multiple Sclerosis? Well, why not? They're both
slow, crippling and ultimately deadly."   -- Monika McDole
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7Np6aP0KxygnleI8RAhbmAKDEm1nIVG2ZP5haPrn+WLPpHho6mACfWKrf
EVFgfl8fBtDeA8iFqMOw+G0=
=NLJE
-----END PGP SIGNATURE-----