Classes and Objects Flashcards
What is an object?
An object is any entity with the problem domain, which is recognised by the system by storing information about it and or interacting with it.
What is the difference between a class and an object?
A class is a term for an object type, a template for producing instances of classes, which are called objects.
Name 4 methods of finding classes and objects
Textual analysis identifying uses identifying players identifying generalisation identifying analogies identifying re-use.
3 different class stereotypes
Entity
Boundary
Control
What is an Entity Class?
An entity class models the information and associated behaviour of something that is relevant to the problem domain
What is a Control Class?
A class for co-ordination, sequencing and control of objects. It is recommended that there is a control class for each use case
Boundary Class
Models the interaction between the actors and the system in the form of the user interface.
How is a UML object made up?
Object name
Attributes
Operations
3 types of links for a class diagram
Whole-part
Gen-spec
Association
c) How would you check that your class diagram is correct?
- Check that it copes with all functionality stated in the detailed use case descriptions, both in terms of objects and attributes directly identified and other attributes needed for functions to perform (e.g. status checks, indicators etc)
- Check with senior analyst and/or colleague.
- Possible check with User but these diagrams are not quite so easy to explain to a User.