この図は、person_typオブジェクト型と、このオブジェクト型の2つのインスタンスを示しています。

person_typの属性は、idno、first_name、last_name、emailおよびphoneです。person_typのメソッドはget_idnoおよびdisplay_detailsです。

オブジェクト型のインスタンスは次のとおりです。


idno: 65
first_name: Verna
last_name: Mills
email: vmills@example.com
phone: 1-650-555-0125

idno: 101
first_name: John
last_name: Smith
email: jsmith@example.com
phone: 1-650-555-0135