Hi All,

   class Fruit {
       has Str $.location;
       has UInt $.apples;
       has UInt $.oranges;
       has UInt $.bananas;
   }

   my $FruitStand = Fruit.new( location => "Cucamonga",
                               apples   => 400,
                               oranges  => 200,
                               bananas  => 50  );

1)  am I correct that I can make as many objects as I
    want out of a particular class?

2 ) what is the syntax to read an element inside an
    object?

3)  what is the syntax to write to an element inside an
    object?

I am confused, again.

-T

Reply via email to