From: Ghost Alpha Date: 2009-10-13T07:48:21+09:00 Subject: Re: Need Help with this problem Walton Hoops wrote: >> keeldepth >> > for watervehicles, and maxairspeed or airvehicles >> > - creates 1 landvhicle objects, 2 watervehicle objects and 3 >> airvehicle >> > objects, use [ constructors ] in each subclass to assign initial >> values >> > of numberofwheels, keeldepth and maxairspeed to the appropriate >> objects. > > You aren't using constructors to define numberofwheels, keeldepth, and > maxairspeed. In your code they are simply constant functions. can you show me the correct way? -- Posted via http://www.ruby-forum.com/.