Help for this page

Select Code to Download


  1. or download this
    $circle->resize( radius => 2     );
    $circle->resize( area   => 12.56 );
    
  2. or download this
    # Querying state -- which is the accessor and which are the interfaces
    +?
    $circle->radius();
    ...
    # Modifying state -- interface potentially defines multiple acceptable
    + forms 
    $circle->resize( radius     => 3               );
    $circle->resize( match_area => $another_circle );