Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is class diagram

 
pravin rasal
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is class diagram and how to design class diagram? Actually I want to design class diagrams for my project but I dont know how to design and what exactly class diagram shows.
 
Murali Ranga
Ranch Hand
Posts: 38
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another good article by Robert Martin.

You would take up different approaches to identify classes like Noun phrase approach, CRC diagrams. Once the classes have been identified you would go ahead to identify the relationship among the classes and the attributes which would be present for each class. These are drawn out in a diagram using UML notations and there by giving you a class diagram. This diagram is not one time effort, it can be evolved as and when you get to know more about the system.

For identifying the methods of each class- one can usually draw collaboration diagram or sequence diagram for different usecases and then from here one can identify the methods involved in each class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic