From: Rick DeNatale Date: 2007-03-18T02:56:27+09:00 Subject: Re: inheritance question On 3/17/07, Corey Konrad <0011@hush.com> wrote: > I am trying to figure out how inheritance works using the super method. > With the sample code below i get the error that i dont have enough > arguments for the constructor i dont understand why i am getting that > error. > > class Dog < Animal > def initialize(color, age, sound) super(color,age) > @sound = sound > end Animals initialize method has two arguments. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/