Help for this page

Select Code to Download


  1. or download this
    class Shape {
        has $.x;
    ...
    $arectangle = Rectangle.new(x=>0, y=>0, width=>15, height=>15);
    $arectangle.width = 30;
    $arectangle.draw;