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 ...
DEV475 Mastering Object-Oriented Analysis and Design with UMLRepresenting Classes in the UMLRepresenting Classes in the UML• A class is represented using a rectangle withcompartments.Professor-name- employeeID : UniqueID- hireDate-status- discipline- maxLoad+ submitFinalGrade()+ acceptCourseOffering()+ setMaxLoad()+ takeSabbatical()Professor J ClarkMastering Object Oriented Analysis and Design with UMLCopyright © 2003 Rational Software, all rights reserved 24• The UML notation for a class permits you to see an abstraction apart from anyspecific programming language, which lets you emphasize the most importantparts about an abstraction — its name, attributes, and operations.• Graphically, a class is represented by a rectangle.2 - 24
Module 2 - Concepts of Object OrientationThe Relationship Between Classes and ObjectsThe Relationship Between Classes and Objects• A class is an abstract definition of an object.• It defines the structure and behavior of each object inthe class.• It serves as a template for creating objects.• Classes are not collections of objects.Professor TorpieProfessorProfessor MeijerProfessor AllenMastering Object Oriented Analysis and Design with UMLCopyright © 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, and semantics.• An object is defined by a class. A class defines a template for the structure andbehavior 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 with real-world objects, abstract out what you do not care about. Then,take these abstractions and 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 within an executing software system tocreate software objects. These software objects represent the real-world objectswe originally started with.• Some classes/objects may be defined that do not represent real-world objects.They are there to support the design and are "software only.”2 - 25
- Page 36 and 37: DEV475 Mastering Object-Oriented An
- Page 38 and 39: DEV475 Mastering Object-Oriented An
- Page 40 and 41: DEV475 Mastering Object-Oriented An
- Page 42 and 43: DEV475 Mastering Object-Oriented An
- Page 44 and 45: DEV475 Mastering Object-Oriented An
- Page 46 and 47: DEV475 Mastering Object-Oriented An
- Page 48 and 49: DEV475 Mastering Object-Oriented An
- Page 50 and 51: DEV475 Mastering Object-Oriented An
- Page 52 and 53: DEV475 Mastering Object-Oriented An
- Page 54 and 55: DEV475 Mastering Object-Oriented An
- Page 56 and 57: DEV475 Mastering Object-Oriented An
- Page 58 and 59: DEV475 Mastering Object-Oriented An
- Page 60 and 61: DEV475 Mastering Object-Oriented An
- Page 62 and 63: DEV475 Mastering Object-Oriented An
- Page 64 and 65: DEV475 Mastering Object-Oriented An
- Page 66 and 67: DEV475 Mastering Object-Oriented An
- Page 68 and 69: DEV475 Mastering Object-Oriented An
- Page 70 and 71: DEV475 Mastering Object-Oriented An
- Page 72 and 73: DEV475 Mastering Object-Oriented An
- Page 74 and 75: DEV475 Mastering Object-Oriented An
- Page 76 and 77: DEV475 Mastering Object-Oriented An
- Page 78 and 79: DEV475 Mastering Object-Oriented An
- Page 80 and 81: DEV475 Mastering Object-Oriented An
- Page 82 and 83: DEV475 Mastering Object-Oriented An
- Page 84 and 85: DEV475 Mastering Object-Oriented An
- Page 88 and 89: DEV475 Mastering Object-Oriented An
- Page 90 and 91: DEV475 Mastering Object-Oriented An
- Page 92 and 93: DEV475 Mastering Object-Oriented An
- Page 94 and 95: DEV475 Mastering Object-Oriented An
- Page 96 and 97: DEV475 Mastering Object-Oriented An
- Page 98 and 99: DEV475 Mastering Object-Oriented An
- Page 100 and 101: DEV475 Mastering Object-Oriented An
- Page 102 and 103: DEV475 Mastering Object-Oriented An
- Page 104 and 105: DEV475 Mastering Object-Oriented An
- Page 106 and 107: DEV475 Mastering Object-Oriented An
- Page 108 and 109: DEV475 Mastering Object-Oriented An
- Page 110 and 111: DEV475 Mastering Object-Oriented An
- Page 112 and 113: DEV475 Mastering Object-Oriented An
- Page 114 and 115: DEV475 Mastering Object-Oriented An
- Page 116 and 117: DEV475 Mastering Object-Oriented An
- Page 118 and 119: DEV475 Mastering Object-Oriented An
- Page 120 and 121: DEV475 Mastering Object-Oriented An
- Page 122 and 123: DEV475 Mastering Object-Oriented An
- Page 124 and 125: DEV475 Mastering Object-Oriented An
- Page 126 and 127: DEV475 Mastering Object-Oriented An
- Page 128 and 129: DEV475 Mastering Object-Oriented An
- Page 130 and 131: DEV475 Mastering Object-Oriented An
- Page 132 and 133: DEV475 Mastering Object-Oriented An
- Page 134 and 135: DEV475 Mastering Object-Oriented An
<strong>DEV475</strong> <strong>Mastering</strong> <strong>Object</strong>-<strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Representing Classes in the <strong>UML</strong>Representing Classes in the <strong>UML</strong>• A class is represented using a rectangle <strong>with</strong>compartments.Professor-name- employeeID : UniqueID- hireDate-status- discipline- maxLoad+ submitFinalGrade()+ acceptCourseOffering()+ setMaxLoad()+ takeSabbatical()Professor J Clark<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 24• The <strong>UML</strong> notation for a class permits you to see an abstraction apart from anyspecific programming language, which lets you emphasize the most importantparts about an abstraction — its name, attributes, <strong>and</strong> operations.• Graphically, a class is represented by a rectangle.2 - 24