Kinesia Online Course
Object Oriented Programming
Kinesia LLC, 2003
    1. A Little Taste of Java
    2. Abstraction and Modeling
    3. Objects and Classes
    4. Object Interactions
    5. UML and Relationships between Objects
    6. Collection of Objects
    7. Some Final Concepts
    8. Object Modeling and Use Cases
    9. Modeling of Dynamic Behavaior and Sequence Diagrams
    10. A Deeper Look at Java
    11. Java Layout
    12. Java Events
    
    
    

    Collections of Objects

    1. What are Collections?

      Collections are a special type of object/class used to gather up and manage reference to other objects.

      You can read any relationship in two directions. For example, you can say Herman Melville wrote Moby Dick or Moby Dick was written by Herman Melville. You can paraphrase each of these two statements as follows:

    2. Herman Melville is in the set of persons who wrote Moby Dick.

    3. Moby Dick is in the set of books written by Herman Melville.
    4. This way of articulating relationships highlights the existence of collections. The following two figures show various collections.

    5. The collection of books written by Herman Melville:

    6. The collection of persons who wrote Moby Dick:

    7. You can think of collections as collections of objects or as collections of relationships, each with a source and a target object. The following figures show the ways to think of collections.

    8. The collection of books written by Herman Melville:

    9. The figure to the left shows the collection of books written by Herman Melville as an object collection, while the figure to the right shows the same collection as a relationship collection.

    10. The collection of authors of Moby Dick:

    11. The figure on the left shows the collection of authors of Moby Dick as an object collection, while the figure to the right shows the same collection as a relationship collection. The figures make clear that object collections and relationship collections are essentially the same.

    12. Collection Types

    13. Arrays

    14. Vectors

    15. Lists, stacks, queues

    16. Set

    17. Map ( Dictionary )