Hi All, In the following;
class Fruit {
has Str $.location is rw;
has UInt $.apples is rw;
has UInt $.oranges is rw;
has UInt $.bananas is rw;
}
# Pre-salted:
my $FruitStand = Fruit.new( location => "Cucamonga",
apples => 400,
oranges => 200,
bananas => 50 );
Is there a way in the class declaration that I can
set the default values such that the "my" creation
of the variable already has the default values in it?
Many thanks,
-T
