7. Классы и отношения между ними

  • Published on
    08-Jan-2016

  • View
    48

  • Download
    0

Embed Size (px)

DESCRIPTION

7. . 7.1. . , .. , . , , . - PowerPoint PPT Presentation

Transcript

  • 7.

  • 7.1. , .. , ., , . - , () . - , .

  • : ; , ; ; () ; , .

  • 7.2 , .

  • Name ;Language , ;Type , :Class ;Parameterized Class ;Instantiated Class ;Class Utility ;Parameterized Class Utility ;Instantiated Class Utility ;Metaclass , ;Export Control (Visibility) , :Public ;Protected ; Private ;Implementation (Package) ;Attributes ;Operations .

  • Multiplicity (Cardinality) () , :n ;0..0 ;0..1 ;0..n ;1..1 ;1..n ; , , ;..n literal n ;.. ;.., ;.., .. ;Space , ;

  • Persistence , : Persistent , , .. , , , , ;Transient ;Concurrency , :Sequential ;Guarded , ;Active ;Synchronous , ;Protocol , , .

  • 7.3. - . . . . , , .

  • : ; () ; , .

  • 7.4. , . :

  • Name ;Type ; ; ;Visibility (Scope) , :Public;Protected;Private;Multiplicity , ; :lower_bound..upper_bound, * ;Ordering , ; :unordered ( );ordered ;

  • Initial value ; ;Containment , :By Value ;By Reference ;Unspecified ( );Static ;Derived ;Const ;Constraints .

  • 7.5. , . .

  • . , . . , , , , , .

  • : , , ; , , ; , , .

  • , . () . , .

  • 7.6. , , : , ; , ; .

  • Name ;Visibility ; :Public;Private;Protected;Implementation;Parameters ;Return type ;Qualifications , ;Exceptions , .

  • Size , ;Time , ;Concurrency , :Sequential ;Guarded , ;Synchronous ;Semantics (Behavior) , , , ;Preconditions ;Post conditions .

  • 7.7. , () . , .Association class , , .

  • is-a (inheritance) (generalization) . , . has-a . , .

  • 7.5. , , . . . , . - -. , .

  • 7.6. . , , .

  • :Navigable ;Role , ; :Name ;Constraints ;Multiplicity ;Aggregate , ( ) ;Static , ;Friend ;Containment , , :By Value ;By Reference ;Unspecified ( );Key ;Qualifier 1..n n..n.