From: tamouse mailing lists Date: 2013-04-30T04:46:14+09:00 Subject: Re: BEGINNER -CLASS QUERY --001a11c37b3c105d1c04db8523d6 Content-Type: text/plain; charset=UTF-8 On Apr 29, 2013 12:17 PM, "shaik farooq" wrote: > > So in ruby we dont declare the instance variables in class for instances > of class. When you say "declare", what is it you actually mean? "Declare" to me means "declare what type a variable is" and that makes no sense in Ruby. You can define instance (preceeded by @) and class (preceede by @@) variables in a class, but that is not "declaring" them. --001a11c37b3c105d1c04db8523d6 Content-Type: text/html; charset=UTF-8


On Apr 29, 2013 12:17 PM, "shaik farooq" <lists@ruby-forum.com> wrote:
>
> So in ruby we dont declare the instance variables in class for instances
> of class.

When you say "declare", what is it you actually mean? "Declare" to me means "declare what type a variable is" and that makes no sense in Ruby.

You can define instance (preceeded by @) and class (preceede by @@) variables in a class, but that is not "declaring" them.

--001a11c37b3c105d1c04db8523d6--