Tuesday, June 2, 2015

Some important class relations in UML to learn


http://www.uml-diagrams.org/dependency.html?context=class-diagrams

http://www.uml-diagrams.org/generalization.html?context=class-diagrams

http://www.uml-diagrams.org/association.html??context=class-diagrams

http://www.uml-diagrams.org/android-camera-uml-class-diagram-example.html

http://www.uml-diagrams.org/class-diagrams-overview.html

http://creately.com/blog/diagrams/class-diagram-relationships/

http://www.codeproject.com/Articles/22769/Introduction-to-Object-Oriented-Programming-Concep



depedency:
   ---->

SearchController depends on (requires) SiteSearch interface.

Class SearchController depends on (requires) SiteSearch interface.



Web Shopping package uses (depends on) Payment package.
Web Shopping package uses (depends on) Payment package.


Interface realization dependency from a classifier to an interface.
Interface SiteSearch is realized (implemented) by SearchService.


Interface realization dependency from a classifier to an interface.
Interface SiteSearch is realized (implemented) by SearchService.




Interface realization dependency from a classifier to an interface.
Interface SiteSearch is realized (implemented) by SearchService.




Component realization notated in the same way as the realization dependency
Component UserService realized by UserServlet and UserDAO.



Usage:


Usage dependency shown as a dependency with a use keyword.
Class SearchController uses SearchEngine class.



Create:

Client classifier creates instances of the supplier classifier.
Class DataSource creates Connection.



Generalization:

Checking, Savings, and Credit Accounts are generalized by Account.
Checking, Savings, and Credit Accounts are generalized by Account


Checking, Savings, and Credit Accounts are generalized by Account.
Checking, Savings, and Credit Accounts are generalized by Account