1 / 6

Classes & Relationships Week 4

Classes & Relationships Week 4. Textbook References Chapter 6 – Pg. 213 – 222 You should READ this section. Class Relationships and Associations

betrys
Download Presentation

Classes & Relationships Week 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Classes & RelationshipsWeek 4 Textbook References Chapter 6 – Pg. 213 – 222 You should READ this section

  2. Class Relationships and Associations Show the relationship or Association between classes. For example, this diagram shows the Vehicle and Customer classes. Multiplicity is shown. Arrowheads not commonly used. 1 1…* purchases

  3. Multiplicity NOTE: This is Figure 6.5, page 217

  4. Generalization Class (Super-class) One Class inherits attributes and operations from another class (called a superclass). Any Attributes and Operations specified in the superclass also exist in the subclass. A Hollow triangle or arrowhead is used to show which classes are subclasses (or superclasses).

  5. Aggregation Class Classes form together to create other classes. In this example the Health Team class is comprised of Admin Support, Doctor and Nurse classes. Multiplicity is shown. No Inheritance takes place. A Solid or Hollow diamond is used.

  6. Sample Students take many courses, but can be a student even if they are currently taking no courses. Exactly 1 teacher is assigned to each course, and all courses have an teacher assigned to them. The assigned teacher gives a grade to each student in the course.

More Related