Lecture 6-4: Aggregation

A Second Look at Classes and Objects

After reading through Chapter 6, you should be able to

Today's Learning Objectives

Aggregation

Creating an instance of one class as a reference in another class is called object aggregation.

Aggregation creates a "has a" relationship between objects. In the UML class diagram below, the course class has a Instructor and has a TextBook

UML Diagram

URL: http://www.cwu.edu/~schwing/cs110/Java/notes/lecture6-4.html
Title: CS 110: Lecture Notes for Programming Fundamentals 1
Author: Ed Gellenbeck, Central Washington University
Last Updated: Monday, January 16, 2006