CREATE TYPE Member_Type AS OBJECT
 (Country VARCHAR2(4),
  Type VARCHAR2(60));
/
CREATE TYPE Member_List_Type AS
 TABLE OF Member_Type;
/
CREATE OR REPLACE TYPE Organization_Type AS OBJECT
 ( Name VARCHAR2(100),
    Abbrev VARCHAR2(12),
    Members Member_List_Type,
    Established DATE,
    hasHqIn REF CityORType,
    MEMBER FUNCTION isMember (the_country IN VARCHAR2)
    RETURN VARCHAR2,
    MEMBER FUNCTION people RETURN NUMBER,
    MEMBER FUNCTION numberOfMembers RETURN NUMBER,
    MEMBER PROCEDURE addMember
      (the_country IN VARCHAR2, the_type IN VARCHAR2));
/
