advertisement

Search Tips
Articles  |   Tutorials  |   Reviews  |   Dev Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source Code  |  

Browse DevX
DevX Updates - Sign Up Here


Partners & Affiliates



advertisement

Articles : Advanced Topics in Java :
Unified Modeling Language :

Contents
Classes and Inheritance
Associations
Roles
Attributes and Behaviors
Abstract Classes, Interfaces, and Relationships
Conclusion

UML Class Diagrams:
A Quick Primer

UML class diagrams depict the structural view of the system and capture the classes involved and the static relationships between them. Even a small software project is likely to be depicted in several diagrams, each capturing a different aspect of the system. This write-up takes a whirlwind tour of class diagrams.

The bigger picture: Class diagrams fit into the bigger picture of the Rational Unified Process which uses UML as a modelling notation and are important artifacts in the Analysis and Design workflow with the Architect and Designer as the primary workers.

Classes and Inheritance

An object is anything that has state, behavior and identity. A class is a blueprint or prototype that defines the variables and methods common to all objects of a certain kind, common behavior, common relationships and common semantics.

A class is drawn as a rectangle with three compartments. Classes should be named using the vocabulary of the domain.


- The behavior of a class is represented by its operations and operations may be found by examining interaction diagrams.
- The structure of a class is represented by its attributes. Attributes may be found by examining class definitions, the problem requirements, and by applying domain knowledge

This is a diagram representation of a class named Class:

Notes (in boxes with a flipped corner) can be attached to a class just as they can be attached to virtually all elements of a diagram.

NEXT


The author has over three and a half years of experience on developing web and object oriented application with a development focus on server side and enterprise Java .He is a regular writer for the European publication "Programmez!" and writes on and of for some online publications. He can be reached at sameertyagi@usa.net

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

internet.com logo


JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.
Blackmail Applet
This applet prints out text that looks like letters cut out of a newspaper. You can specify the text, the width and height of the applet and the delay after each letter. Future versions will have more parameters.
JB User Poll
What is your primary tool for learning Java?
The JavaBoutique Top 15:
1. articles.rdf
2. welcomead
3. applets.rdf
4. quickserv
5. 3DMaze
6. dotz
7. Froz_Bubb
8.
9. KaaBlitz
10. anglefinder
11. ChompText
12. DS_ClockWipe
13. Pool
14. Search2
15. PacMan
Want more? Check out our Top 100!

Refer-It
Affiliate Program and Referral Directory.
New on internet.com
Google IM Not Talking to Other Jabbers
Newly-launched Google Talk IM service doesn't connect to other open source Jabber servers and users -- at least not yet.

Printer Sets Good Example for Small Business Security
While surveys suggest that small businesses aren't prepared for ever-present security dangers, this Boston-area printer has maintained a pristine operation since a scare six years ago.

VoIP Gizmo Comes to Universities
As student gear up for back to school, a SIP-based initiative aims to VoIP-enable universities around the world for free calling.



Copyright 2002 INT Media Group, Incorporated. All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/