Questions tagged [class-diagram]

UML diagram describing object classes and relations among them.

A class diagram is a component of the Unified Modeling Language decribing object classes in the object oriented programming paradigm :

  • What they contain (attributes)
  • How they behave (methods)
  • How they are linked together (dependancy)
1529 questions
17
votes
1 answer

How can I prevent property names in class diagrams from being sorted?

I tend to design my classes with properties sorted in an order that makes sense to me. For example; I always make critical info like 'id' near the beginning, followed by less & less important data, and finally record meta data like 'create date'…
John MacIntyre
  • 12,910
  • 13
  • 67
  • 106
17
votes
6 answers

Differences between a conceptual UML class diagram and an ERD?

If I create a conceptual class diagram such that each class captures 'name' and 'attributes' but not 'operations', have I not basically created what would be otherwise considered an ERD? I'm trying to gain an understanding of what the differences…
Adam
  • 203
  • 1
  • 2
  • 5
17
votes
1 answer

Active class versus passive class

In UML specification superstructure 2.5(still Beta, page 203) A Class may be designated by setting isActive to true as active (i.e., each of its instances is an active object). When isActive is false the Class is passive (i.e., each of its…
Carlos
  • 1,522
  • 5
  • 14
  • 26
16
votes
2 answers

Visual Studio 2015 generate UML from code

Windows 10 64-bit Microsoft Visual Studio Enterprise 2015 Version:14.0.25431.01 Update 3 I have a almost finished project and now I need to write a documentation. I found some information in the www which tells to "simply" generate UML from the…
Daniel Eisenreich
  • 1,353
  • 3
  • 16
  • 32
16
votes
2 answers

UML Class Diagram: Attribute or Association?

Now i have two classes, named patient and doctor: Patient() { public: //functions here private: Doctor doctor; Date dateAdmitted; Date dateDischarged; } Doctor() { public: //functions here private: …
veeyikpong
  • 829
  • 8
  • 20
16
votes
4 answers

composition and aggregation example with UML class diagram

i can't seem to understand completely the difference between aggregation and composition in a code. Client <.>---->BankAccount (this is supposed to be Client - BankAccount composition class diagram). So in this example, Client has a bank account, so…
Mefhisto1
  • 2,188
  • 7
  • 34
  • 73
15
votes
3 answers

UML Class diagram, how to show a Class extends thread?

I have a class called ServerSide in which another class resides called Cserver. The following code fragment should explain what I am talking about: public static void main (String [] args) throws Exception { System.out.println("The server is…
CurryMaster
  • 151
  • 1
  • 2
  • 5
15
votes
4 answers

Component diagram versus Class diagram?

class and package diagrams model logical design of software component diagram models implementation view Could you please clarify the above difference through a very short example?
user2019510
  • 1,460
  • 5
  • 16
  • 29
14
votes
2 answers

How to Install ObjectAid in 2022?

ObjectAid was a very useful Eclipse plug-in which generates class diagram from your source code. Unfortunately it looks like it is discontinued in March 2022 or at least its website is not working. Can anyone tell me from where to download and…
Trayan Momkov
  • 842
  • 1
  • 7
  • 18
14
votes
4 answers

Which should be created first ER Diagram OR Class Diagram?

The very first step i created a DFD. Then i moved on to create a Class Diagram. And while doing that i felt that i should create the ER diagram first. As there were many details which could not be captured in a Class diagram. So, my question should…
Rasshme Chawla
  • 1,581
  • 2
  • 13
  • 19
13
votes
1 answer

How to show private inheritance relationship in a UML class diagram

In C++ since private inheritance is not considered as an is-a relationship, how is it supposed to be shown in a class diagram and if it is shown as a has-a relationship then how can it be differentiated between a composition and a private…
ahj
  • 745
  • 1
  • 6
  • 13
13
votes
2 answers

When to use UML Association Classes?

Can I improve my design on these 2 diagrams below? If so, how? I am confused by the use of association classes in my diagrams. Should I use them? Figure 1 Figure 2
Zabahey
  • 328
  • 1
  • 3
  • 16
13
votes
1 answer

Visual Studio UML Class Diagram & Modeling of Generic Types

I need to model a concrete generic class inheriting from a base generic class. First, see below: ActivityFacade should be implemented this way: public class ActivityFacade : BaseFacade { } How can I model this in a VS2012 UML class…
Matt
  • 6,787
  • 11
  • 65
  • 112
13
votes
1 answer

VS 2010 Class Diagram - Can Sort Alphabetically be removed?

The Class Diagram in Visual Studio 2010 is a great feature but when it sorts "by kind" it also sorts the Fields and Methods Alphabetically. I know that they can be sorted by Kind, Group or Alphabetically but I was hoping to know if there is a way…
JJNorth
  • 133
  • 7
13
votes
1 answer

MVC UML class diagram

I've have to work on a new project,written in C# mvc,the first thing i would like to do is create an UML class diagram. Is there somewhere an example of how to do this? Most examples show one controller with one view and one model. But in this…
Danny De Boiserie
  • 243
  • 1
  • 2
  • 10