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

Guidelines for creating a collaboration graph, identifying subsystems, and drawing a class diagram in software design. It covers class notation, defining variables and methods, and using access modifiers. It also explains the difference between instance and class variables, and public, private, protected, and static access modifiers.

Typology: Slides

2011/2012

Uploaded on 08/12/2012

dhanvant
dhanvant 🇮🇳

4.9

(9)

89 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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 :