Docsity

Software Design: Creating Class Diagrams and Defining Classes and Access Modifiers, Slides of Object Oriented Analysis and Design

Toggle sidebar
bg1
Packages:
Draw a complete collaboration graph of the
system.
Identify possible subsystems within you design.
Name the subsystems.
Look for frequent and complex collaborations.
Classes in a subsystem should collaborate to
support a small and strongly cohesive set of
responsibilities.
Class within a subsystem should be strong
interdependent.
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Software Design: Creating Class Diagrams and Defining Classes and Access Modifiers and more Slides Object Oriented Analysis and Design in PDF only on Docsity!

Packages:

Draw a complete collaboration graph of the

system.

Identify possible subsystems within you design.

Name the subsystems.

Look for frequent and complex collaborations.

Classes in a subsystem should collaborate to

support a small and strongly cohesive set of

responsibilities.

Class within a subsystem should be strong

interdependent.

… Packages:

Simplify the collaborations between and within

subsystem.

Minimize the number of. Collaborations a class has with other classes or subsystems. Classes and subsystems to which a subsystem delegates. Different contracts supported by a class or a subsystem.

Class Notation

Class describing the attributes and methods:

Defining Variables and Methods

When defining variable

Use lower case character for instance variables Use upper case character for class variables Use upper case character for embedded words Define attributes data type and default values Use : to separate data type and = to assign initial values

When defining methods

Use lower case character for all methods Define method arguments with default values Define return type after the function signature prefixed by :