Re: Custom class

Sijo kg
Tue, 06 Oct 2009 11:02:19 -0000

Hi Pål Bergström

> That was great. Thank you. Still not sure about instance and what it
> means.

     It is not a difficult thing to grasp Just an example  Suppose you
have a class Fruit.Now an apple and an orange are instances of the class
Fruit. So in Ruby it can be created like

apple = Fruit.new  or
orange = Fruit.new


    Thousands of other examples.You have to read any object oriented
book


Sijo