From: Hans Mackowiak Date: 2011-10-04T14:23:57+09:00 Subject: Re: Operator Overloading class Point def +(other) #there your code, i think result = Point.new result.x = self.x + other.x result.y = self.y + other.y result.z = self.z + other.z return result end end but you also need to make the variables accessable like class Point attr_accessor :x,:y,:z end and you should remove your init, it is wrong -- Posted via http://www.ruby-forum.com/.