25 terms

UML Class & Activity Diagram

STUDY
PLAY
Abstraction
Discarding irrelevant details within a given context. Focusing only on the important details.
Encapsulation
The process of compartmentalizing the elements of an abstraction that constitute its structure and behavior. Hiding private information
Object
Any entity that can be manipulated by the commands of a programming language
Attribute
Pieces of information that represent the state of an object
Behavior
How an object acts and reacts, in terms of its state changes and message passing
Class
A type of something. The blueprint out of which objects can be constructed
Instance
In a language where each object is created from a class, an object is called an instance of that class
Inheritance
A way to compartmentalize and reuse code by creating collections of attributes and behaviors called objects which can be based on previously created objects.
Polymorphism
Any object denoted by this name is able to respond to some common set of operations in different ways
UML Activity Diagram
Allow you to specify how your system will accomplish its goals
Activity Diagram: Start Node and Stop Node
Start: A solid circle
Stop: A solid circle inside a hollow circle
Activity Diagram: Action
A step in the overall activity
Activity Diagram: Decision
Diamond-shaped node.
Activity Diagram: Edge
Strings actions together to determine the overall activity flow
Activity Diagram: Object
Rectangle. Is part of defining object flow in an activity
Activity Diagram: Send and Receive Signals
Represent interactions with external participants
Class Diagram: Abstract Class
Does not contain a method implementation and is really a placeholder that implements the behavior from subclasses
Class Diagram: Concrete Class
Is a class that can be instantiated
Class Diagram: Interface Class
An interface that classes must implement
Class Diagram: Inheritance Relationship
Empty arrow. Is a type of another class
Class Diagram: Realizes Relationship
Filled arrow.
Class Diagram: Association Relationship
Straight line with dotted line leading off. A class will actually contain a reference to an object, or objects, of the other class in the form of an attribute
Class Diagram: Aggregation Relationship
Empty diamond arrowhead. "contains" but items can live on their own outside of the container
Class Diagram: Composition Relationship
Filled Diamond Arrowhead. "contains" but the item cannot live on their own
Class Diagram: Dependency Relationship
A class needs to know about another class to use objects of that class
YOU MIGHT ALSO LIKE...