OO鐨勬蹇碘斺旇繖灝變笉澶氳浜?/p>
涓夌妯″瀷
class model鈥斺?/font>鎻忚堪object鐨勭粨鏋?/p>
state model鈥斺?/font>鎻忚堪鍗曚釜object鐨勮涓?/p>
interaction model鈥斺?/font>鎻忚堪object涔嬮棿鐨勪簰鍔ㄨ涓?/p>
Class Model 鍗曚釜鐨?font face="Times New Roman, serif">class 鍓嶉潰鐨?font face="Times New Roman, serif">+
棣栧厛鏄被鍚嶃佺劧鍚庢槸灞炴э紝鏈鍚庢槸鏂規硶銆?/p>
Association
褰㈠紡涓?font face="Times New Roman, serif">Association灝辨槸涓鏍圭嚎錛岃〃紺轟袱涓被涔嬮棿鐨勫叧緋伙紝綰夸笂鍙互鏍囨槑Association鐨勫悕瀛楋紝涓ょ鍙互鏍囦笂multiplicity錛?font face="Times New Roman, serif">1琛ㄧずone錛?font face="Times New Roman, serif">"1..*"琛ㄧずone or more錛?font face="Times New Roman, serif">"3..5"琛ㄧずthree to five錛?/p>
"*"琛ㄧずmany
涓や釜綾諱箣闂村彲浠ユ湁澶氫簬涓涓?font face="Times New Roman, serif">Association錛屼絾涓鑸笉甯哥敤
Association End Names
Association鐨勪袱绔彲浠ユ爣涓婁袱涓被鍦ㄨ繖涓叧緋諱腑鐨勮鑹?/p>
榪欏湪涓や釜綾葷殑鍏崇郴涓綔鐢ㄥ彲鑳戒笉鏄壒鍒槑鏄撅紝浣嗗鏋滅浉鍏崇殑鍙屾柟灞炰簬鍚屼竴涓被
Association涓ょ鍙互鍔犲緢澶氶檺鍒?/strong>
絳夌瓑錛岃繕鏈?font face="Times New Roman, serif">Bags瀵瑰簲浜?font face="Times New Roman, serif">sequence錛屾病鏈夊厛鍚庢搴忋?/p>
Qualified Association
棣栧厛鏄病鏈?font face="Times New Roman, serif">Qualified鐨?br />
鐒跺悗鏄?font face="Times New Roman, serif">Qualified
N-ary Association
Generalization
鍏蜂綋鍦ㄧ紪紼嬭璦涓紝灝辨槸緇ф壙鍏崇郴
寰堢畝鍗曚笉澶氳
Association->Aggregation->Composition
Aggregation琛ㄧ幇鐨勬槸涓縐?font face="Times New Roman, serif">part-whole鐨勫叧緋?/p>
Composition
Composition涓?font face="Times New Roman, serif">Aggregation鐨勫尯鍒槸part鍙兘灞炰簬涓涓?font face="Times New Roman, serif">Assembly
鍙互璇?font face="Times New Roman, serif">Association->Aggregation->Composition鍏崇郴涓灞傚己榪囦竴灞?/p>
Abstract Class 綾誨悕鐢ㄦ枩浣撳瓧
灞炴ф湁涓縐嶅彨鍋?font face="Times New Roman, serif">Derived Data錛屽畠鐨勬剰鎬濇槸榪欎釜灞炴ф槸琚叾瀹冨睘鎬ф垨綾誨鍑烘潵鐨勶紝琚叾瀹?font face="Times New Roman, serif">elements鎵鍐沖畾錛岀鍙鋒槸鍦ㄨ繖涓睘鎬у墠闈㈠姞涓婃枩鏉?br />
濡備笂鍥句腑錛?font face="Times New Roman, serif">age鐢?font face="Times New Roman, serif">birthdate 鍜?currentDate鎵鍐沖畾銆?/p>
鏈鍚庝竴縐嶅浘紺猴紝灝辨槸package