From: Shuaib Zahda Date: 2007-10-22T14:12:11+09:00 Subject: Re: Class variables Sorry guys after a more search effort i figured it out. i forgot to call to_i method so def sum @@num1.to_i + @@num2.to_i end and it works the reason is that @@num1 ans @@num2 are string. Sorry again -- Posted via http://www.ruby-forum.com/.