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
-1
votes
1 answer

What would be the appropriate way to depict an occupation of an employee within the class diagram in relationship to the c++ implementation?

Let's say I have a base class User that holds all the necessary info (login, name, mail ...). There's Administrator class deriving from User that can create new and delete existing Users. I need 3 more classes: Manager, Worker and Project. Both…
-1
votes
1 answer

Visual Studio - Class diagrams

I am using the class diagram extension of Visual Studio 2019 (.NET 5/Standard project). But sometimes I get a very annoying error message when I try to drag & drop a class from the Class view in the design surface: The error message appears in…
David Mason
  • 915
  • 1
  • 9
  • 27
-1
votes
1 answer

Shoud the classes have always have a connectivity in UML?

Should the classes always have connectivity in UML? For example, in the following diagram, class Zugriff is not connected to any other classes. It that a valid or correct class diagram in UML?
-1
votes
3 answers

What is the best way to reduce the number of extends to have as less class possible in Java?

So to be short I need a class License that need to be extends into two sub classes, let's call them A and B. License : public abstract class License{ } A : public class A extends Licence{ Date valid; Date expire; } B : public class B extends…
BertSa
  • 3
  • 5
-1
votes
1 answer

How to implement class diagram in java code

I am beginner and trying to learn by studying material online. I just draw a diagram and want to show you so that you please put me on the right path. Question-1: Is that drawn correctly Question-2: How to implement this diagram into Java…
-1
votes
2 answers

OOP UML Class Diagram, One person Has a multiple roles. How should its structure be?

There are three types of roles in a system. Referees President (There will be only 1 president) Authors A person can be both a referee and a author. If a person has the role of President, they cannot have another role. How should a UML Class diagram…
-1
votes
1 answer

Which connection should the seat class use with which classes in this Uml diagram?

I have 4 class in my diagram. These are appointment, dentist, patient and seat classes. In any clinic, dentists use the seats right?. My question begins here. This is part of my diagram. the dentist is using the chairs while doing the…
Just a human
  • 17
  • 1
  • 7
-1
votes
1 answer

CosmosDB SDK class diagram

I'm trying to "visualise" all the key classes and relationships from the Java or c# sdk - I haven't seen a class diagram. Can anybody help?
-1
votes
2 answers

Why two class is not connected in ClassDiagram?

Overall Class Diagram I drew class diagram in android Studio. First picture is my class diagram. I have a question about it. this is the problem Definitely, I used method of UserMemoryParse class in project_Utils class. But any relationship…
DoaOh
  • 1
  • 2
-1
votes
1 answer

How do I model (UML, Class Diagram) an object that is used in a method

I'm working on a class diagram for an existing application (C#) and I'm struggling with the following. Say you have two classes A and B. Class B contains a method foo that returns a list of A objects:: public class A { string V {get; set;} } public…
Wout
  • 77
  • 6
-1
votes
1 answer

Why are these java code representation/translation of UML incorrect?

I have this slide from my professor: I don't understand why public class H and public class I are incorrect? Is it because due to the lack of navigability shown (no arrows), you assume it's either 0 or greater than 0, so you MUST include them as an…
Aragon343
  • 23
  • 4
-1
votes
1 answer

Accessing Windows Form components in a derived class in c#

I am new to learning C#, currently learning to use Windows Form / Classes using Class Diagram. What I am trying to do is access the Windows Form components from one of the class I've created, such as the InitializeComponent() I've tried public…
NZ_DJ
  • 341
  • 2
  • 13
-1
votes
1 answer

Are these UML diagrams correct?

Are these diagrams correct? I am talking just about UML specifications. The first one is a class diagram of a code implementation. The second one is an activity diagram showing how to repair some 3D models.
user1833270
  • 59
  • 1
  • 7
-1
votes
1 answer

Trying to create a system design represented by a UML class diagram. Potentially using the adapter pattern?

I need to describe a general design for a system that will handle the different types of tollbooths and their components, for a homework question: You’re the lead developer for a company that has cornered the market on high-way tollbooths. Your…
Hello
  • 219
  • 2
  • 7
-1
votes
1 answer

Are the relationships and class models in this diagram correct?

So, I'm trying to get better with labeling my class diagrams and wanted to know if I have laid out the class diagrams here in the correct fashion. I've tried adding in an abstract class for Blood Pressure as both classes have similar methods which…
1 2 3
99
100