12.07.2015 Views

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Module 2 - Concepts of <strong>Object</strong> OrientationThe Relationship Between Classes <strong>and</strong> <strong>Object</strong>sThe Relationship Between Classes <strong>and</strong> <strong>Object</strong>s• A class is an abstract definition of an object.• It defines the structure <strong>and</strong> behavior of each object inthe class.• It serves as a template for creating objects.• Classes are not collections of objects.Professor TorpieProfessorProfessor MeijerProfessor Allen<strong>Mastering</strong> <strong>Object</strong> <strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Copyright © 2003 Rational Software, all rights reserved 25• A class is a description of a set of objects that share the same responsibilities,relationships, operations, attributes, <strong>and</strong> semantics.• An object is defined by a class. A class defines a template for the structure <strong>and</strong>behavior of all its objects. The objects created from a class are also called theinstances of the class.• The class is the static description; the object is a run-time instance of that class.• Since we model from real-world objects, software objects are based on the realworldobjects, but they exist only in the context of the system.• Starting <strong>with</strong> real-world objects, abstract out what you do not care about. Then,take these abstractions <strong>and</strong> categorize, or classify them, based on what you docare about. Classes in the model are the result of this classification process.• These classes are then used as templates <strong>with</strong>in an executing software system tocreate software objects. These software objects represent the real-world objectswe originally started <strong>with</strong>.• Some classes/objects may be defined that do not represent real-world objects.They are there to support the design <strong>and</strong> are "software only.”2 - 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!