Skip to Content
Visual Modeling with Rational Rose 2002 and UML
book

Visual Modeling with Rational Rose 2002 and UML

by Terry Quatrani
October 2002
Intermediate to advanced content levelIntermediate to advanced
288 pages
5h 4m
English
Addison-Wesley Professional
Content preview from Visual Modeling with Rational Rose 2002 and UML

Splitting Classes

Classes should be examined to determine if they are following the golden rule of OO, which states that a class should do one thing and do it really well. They should be cohesive; for example, a StudentInformation class that contains information about the Student actor as well as information about what courses the student has successfully completed is doing too much. This is better modeled as two classes—StudentInformation and Transcript, with an association between them.

Often, what appears to be only an attribute ends up having structure and behavior unto itself and should be split off into its own class. For example, we'll look at Departments in the university. Each Course is sponsored by a Department. Initially, this information ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

UML for Mere Mortals®

UML for Mere Mortals®

Robert A. Maksimchuk, Eric J. Naiburg
Software Architecture and Design Illuminated

Software Architecture and Design Illuminated

Kai Qian, Xiang Fu, Lixin Tao, Chong-wei Xu
Professional Application Lifecycle Management with Visual Studio® 2010

Professional Application Lifecycle Management with Visual Studio® 2010

Mickey Gousset, Brian Keller, Ajoy Krishnamoorthy, Martin Woodward

Publisher Resources

ISBN: 0201729326Purchase book