Ch02-Approaches To System Development
Ch02-Approaches To System Development
What Is an Object?
An entity that encapsulates data and behavior - Objects are categorized into classes
What Is Encapsulation?
The characteristic of object-orientation in which data and behavior are bundled into a class and hidden from the outside world
Access to the data and behavior is provided and controlled through an objects interface
Chapter 2
What Is a Class?
A category of objects that share the same attributes, operations, relationships, and semantics
All objects are instances of classes
Chapter 2
Name Attributes
Operations
Chapter 2
What Is an Attribute?
Attribute- a named property of a class that describes a range of values that instances of the attribute might hold
Attributes are the way classes encapsulate data
Chapter 2
What Is an Operation?
A behavior of an object
Implemented in classes are methods Methods are identified and invoked by their signatures, including name, parameters, and return type
Chapter 2
Chapter 2
Chapter 2
What Is Generalization?
A relationship between a more general (or parent) class and a more specific (or child) class
The more specific class has additional attributes and operations
Chapter 2
What Is Inheritance?
The mechanism by which the more specific class in a generalization relationship includes the attributes and operations of the more general class
Chapter 2
Chapter 2
What Is Polymorphism?
The ability for different classes of objects to respond to identical messages in different ways
Polymorphism = having many forms Different behaviors for the same message
Chapter 2
Chapter 2
What Is a Component?
A
replaceable part of a system providing a clearly defined function through a set of interfaces
of classes working together toward a common end; a subsystem
Group
Chapter 2
What Is an Interface?
The mechanism by which users of a component invoke its behaviors and manipulate its properties
The interface is implemented by method signatures
Chapter 2
Chapter 2
What Is an Association?
can exist independently of the whole Compositions: part-whole relationships where the part and the whole are fully dependent on each other
Chapter 2
roles
multiplicities
Chapter 2
Systems Modeling
Systems modeling creating an abstraction of a system Abstraction focusing on the relevant aspects and ignoring other details UML is a modeling approach, involving these diagrams:
Chapter 2
UML Diagrams
Use-case diagram shows use cases, actors, and relationships describing user interactions with system
Chapter 2
UML Diagrams
Class diagram shows set of classes and relationships (generalizations and associations) Object diagram shows specific instances of a class diagram Activity diagram shows flow of activities, or wokflow of objects
Chapter 2
State diagram shows transitioning of an object from state to state in response to events Composite structure diagram shows how a component whole is made up of its parts Package diagram shows logical grouping of analysis or design elements
Chapter 2
Chapter 2