// example 2 <' extend fruits { mangos : uint; papayas : uint; sum_fruits_up() : return uint is also { result += mangos + papayas; // the last value written into result is the one that will be returned from the // method. Note that if in the original method I would have written instead: // return apples + oranges; // I would not have been able to extend it. }; }; '>