UML Class Diagram Explained With C++ samples

Great post about C++ UML diagram creation

CPP Code Tips

As you know a Class diagram is a diagram showing different classes in a system their attribute, operation and the relationship among different objects.

Class Diagram

Even I have been using it for long time; I always had confusion each time when I use it. This post is meant for such people; also it will be helpful for beginners, here I will explain the class diagram with C++ class example.

A class representation

Class diagram for the above class is shown below.
Different visibility of the class can be represented as
“+” Public
“-” Private
“#” Protected

Different Parameter direction
“in”           The parameter is an input parameter.
“Inout”    The parameter is capable of both input and output.
“Out”        The parameter is an output parameter.

Different type of members in a class
1) Static members are represented as underlined.
2) Pure virtual functions are…

View original post 390 more words


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s