120 likes | 525 Views
Domain Class Diagram. Chapter 4 Part 2 pp. 103-114. UML Class Diagrams. Domain Class Diagram In Analysis Phase , similar to the ERD Models things in the users’ problem domain Design Class Diagram In Design Phase Model software classes. ERD vs Domain Class Diagram. Entity Attribute
E N D
Domain Class Diagram Chapter 4 Part 2 pp. 103-114
UML Class Diagrams • Domain Class Diagram • In Analysis Phase, similar to the ERD • Models things in the users’ problem domain • Design Class Diagram • In Design Phase • Model software classes
ERD vs Domain Class Diagram • Entity • Attribute • Relationship • Cardinality • Instance • Domain Class • Attribute • Association • Multiplicity • Object ERD Domain Class Diagram
Association Types • Regular Associations • Association Class • Generalization Hierarchies is-a • Whole-Part Associations has-a
Generalization Hierarchy • “is-a” • Generalization/Specialization Hierarchy • Superclass (base) & Subclass (derived) • Inheritance • Abstract Class &Concrete Class
Generalization Hierarchy How many super classes are there? Are there any mistakes in the identification of abstract & concrete classes?
Whole-Part Hierarchies “has-a” • Aggregation • removable parts • can exist separately • e.g. computer & its parts “has-a” • Composition • non-removable parts • stronger • cannot exist separately Car Person Engine Tire Hand Leg
Summary • How many super classes are there? • How many sub classes are there? • What type of class is Account? • What type of classes are Savings & Checking Account? • What type of class is Transaction?
Summary • How many super classes are there? • How many sub classes are there? • Is there an Association Class? • What does 0..2 mean?