classes relationships week 4
Download
Skip this Video
Download Presentation
Classes & Relationships Week 4

Loading in 2 Seconds...

play fullscreen
1 / 6

Classes & Relationships Week 4 - PowerPoint PPT Presentation


  • 97 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Classes & Relationships Week 4' - betrys


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
classes relationships week 4

Classes & RelationshipsWeek 4

Textbook References

Chapter 6 – Pg. 213 – 222

You should READ this section

slide2

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

slide3

Multiplicity

NOTE: This is Figure 6.5, page 217

slide4

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).

slide5

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.

slide6

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.

ad