Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
120Activity
P. 1
Class Diagram

Class Diagram

Ratings:

4.5

(8)
|Views: 13,413|Likes:
Published by api-3834497

More info:

Published by: api-3834497 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

 
 
CLASS DIAGRAMS
 
Class diagrams are created to provide a picture or view of someor all of the classes in the model.The main class diagram in the logical view of the model istypically a picture of the packages in the' system. Each packagealso has its own main class diagram, which typically displays the"public" classes of the package.
A class diagram is a picture for describing generic descriptions of  possible systems. Class diagrams and collaboration diagrams are alternaterepresentations of object models.Class diagrams contain icons representing classes, packages, interfaces, andtheir relationships. You can create one or more class diagrams to depict theclasses at the top level of the current model; such class diagrams are themselvescontained by the top level of the current model.
 
 
IDENTIFICATION OF CLASSES AND OBJECTSOBJECT :
AN OBJECT IS a representation of an entity, either real-world or con-ceptual.An object is a concept, abstraction, or thing with well defined boundaries andmeaning for an application.Each object in a system has three characteristics: state, behavior, and identity.
STATE :
THE STATE OF an object is one of the possible conditions in which itmay exist. The state of an object typically changes over time, and is defined by aset of properties (called attributes), with the values of the properties, plus therelationships the object may have with other objects.For example, a course offering object in the registration system may bein one of two states:
open
and
closed.
It is available in the open state if value is <10 otherwise closed
 
 
Behavior :
Behavior determines how an object responds to requests from other objects .Behavior is implemented by the set of operations for the object.
 
For example , In the registration system, a course offering could have the behaviors
add 
a
 student 
and
delete
a
 student.
 
Identity :
 
Identity means that each object is unique even if its state is identical to that of another object.For example, Algebra 101, Section 1, and Algebra 101, Section 2 are twoobjects in the Course Registration System. Although they are both courseofferings, they each have a unique identity
.
 In the UML, objects are represented as rectangles and thename of the object is underlined as shown below :
Algebra 101, section 1

Activity (120)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Mac V Vinash liked this
meenahil liked this
Muhammad Faisal liked this
Syeda Zahra liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->