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
0
votes
2 answers

class diagram - link is valid or not?

The above shows a class diagram. There is doThis(obj: Class B) in Class A which takes an object of ClassB and will eventually call obj.operation1(). Should there be a link between Class A and Class B only for this reason? Or there is no need to…
user427969
  • 3,836
  • 6
  • 50
  • 75
0
votes
1 answer

How to represent external API in class diagramm

This is my actual class diagram In the LocationVertexclass I have used the type Location which is an object from Flickr API . Should I indicate the use of external API in my diagram? and how to do this?
nawara
  • 1,157
  • 3
  • 24
  • 49
0
votes
1 answer

An architecture for something like the "21 questions" game

I am obviously not expecting a full architecture/answer, I'm more looking for some ideas/hints that will lead me to the final architecture. So basically the goal of the game, for those who don't know, is to ask questions to the other player that…
wsalame
  • 130
  • 1
  • 8
0
votes
1 answer

can i use interface in logical model?

I am drawing Logical and physical Class diagram. in this diagram I have a class that implement interface.in physical diagram,there isn't interface,because this class,has all attribute of the base class interface. physical diagram and logical diagram…
user776289
  • 31
  • 3
0
votes
1 answer

How to define this class relationship

This my UML class diagram (URL) In above diagram, ChildParent (or Child1, Child2, and Child3) can only be initialized in MainObject->create_new_object() and store it in class Library through ObjectData->lib->add_object(key, newObject). So, how to…
Pattisahusiwa
  • 205
  • 2
  • 8
0
votes
3 answers

Class diagram relationship diamonds

When creating relationships in an Object Class Diagram for an Object Relational Database, should the diamonds on the ends of the relationship links be filled in or not. Here is an image of my Class…
0
votes
0 answers

Automatically build UML class diagram for unmaged C++ code in Visual Studio 2010

So, I tried Visio UML reverse engineering, but it worked about 20 minutes, put Visual Studio in non responding state and showed some warnings like "Couldn't reverse engineer a namespace". So, is there a way to build class diagram in a reasonable…
Pavel Oganesyan
  • 6,774
  • 4
  • 46
  • 84
0
votes
1 answer

Object Relation Class Diagram

I am designing a Object Relational Database and here is my Class Diagram: http://canning.co.nz/AdvancedDatabase/Class_Diagram.png My Computer Class has a 1-1 relationship with the CurrentUser Class. When creating the Object in code, the Computer…
0
votes
0 answers

From Java Code to Class Diagram

I have the Class Diagram (from my system that was coded in Java), where the Class Diagram consists of the Business Logic and it has classes like Student, Exam, Topic, Question, etc. The thing is I want to know if I should add the getter and setter…
John Smith
  • 65
  • 6
0
votes
1 answer

Class Diagram aspx

I am currently bussy with my Class Diagram. My project has some classes (example: User.cs, Friend.cs, Message.cs). And I have also some .aspx and .ascx (web user control) files which also have classes, for example: ShowFriends.ascx has a…
Swag
  • 2,090
  • 9
  • 33
  • 63
0
votes
2 answers

generating class diagram in visual studio 2010 express

I am relatively new to C# and I want to generate class diagram of my project. Can anybody tell me how to generate class diagram in visual studio 2010 express.I know that it is easy to do it on ultimate version. But what about express version? thanks
0
votes
1 answer

Is it possible to use a parent table Id instead of child table Id, when child table should put it's Id into another table

I have this Generalization relation ship between some classes in my class diagram. FirstClass as a base class that has Name attribute, SecondClass as a derived class that the FirstClass is it's base class and has some other attributes and finally…
Vahid Ghadiri
  • 3,966
  • 7
  • 36
  • 45
0
votes
1 answer

UML Class Diagram Primary Key in Visio 2007

How do I show Primary and Foreign keys in Visio 2007? I'm completely stumped. All my research so far shows how to do it in 2003 but nothing for 2007. Thank You in advance for any help.
user1957778
  • 247
  • 3
  • 5
  • 10
0
votes
1 answer

How to generate class diagram from xcdatamodel?

Is there any tool available which can generate a class diagram from existing xcdatamodel?
nitz19arg
  • 417
  • 7
  • 18
0
votes
1 answer

UML class diagram associations

In UML class diagrams, I am told we should not have any standalone classes but that they should all be connected in some way. In theory that makes sense and with simple classes, sure.. take the following for example: So, a Person can have 0 or more…
Matt
  • 6,787
  • 11
  • 65
  • 112