CREATE OR REPLACE TYPE GeoCoord AS OBJECT
 ( Longitude NUMBER,
   Latitude NUMBER,
    MEMBER FUNCTION Distance (other IN GeoCoord)
     RETURN NUMBER,
    MAP MEMBER FUNCTION Distance_Greenwich
     RETURN NUMBER
 );
 /
