From: christopher.j.meisenzahl@... Date: 2002-11-16T05:27:19+09:00 Subject: Newbie questions regarding getter/setter methods... Just working my way through the pickaxe book. If I have this class: class Song def name @name end def artist @artist end def duration @duration end end Do I also have to declare @name, @artist, and @duration within the method? Or are they implicitly declared by declaring the accessor methods? What about this case? class Song attr_reader :name, :artist, :duration end In general, how do member variables work? Are they all private and require accessor/reader methods to be accessed at all? My background includes a little bit of C/C++ and Java. Thanks! Christopher J. Meisenzahl CPS, CSTE Senior Software Testing Consultant Spherion christopher.j.meisenzahl@citicorp.com