From: "Marcin Mielżyński" Date: 2006-08-06T04:35:04+09:00 Subject: Re: Inheritance with class-variables Yochen Gutmann wrote: > Hi, > change it to: class Animal @temperature = 0 def self.temperature @temperature end def info_temperature puts "My body temperature is "+self.class.temperature.to_s+" degree" end end class Spider < Animal @temperature = 20 end class Horse < Animal @temperature = 38 end batty = Spider.new fury = Horse.new batty.info_temperature fury.info_temperature the @@variables are not class object variables - they resemble static variables from in c++/java, it's not the same. lopex