Questions tagged [class-diagram]
A class diagram describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among the classes.
183 questions
3 votes
1 answer
194 views
How should User behaviour depending on role be design as OOP
Imagine I got user which might be either author, administrator, reviewer An author have relation on book that he wrote. An administrator have relation on banned user (we track which administrator ...
1 vote
3 answers
223 views
Calendar modeling in class diagram
I am creating a cinema website focused on client services, where clients can reserve tickets for movies and browse the cinema's schedule (both daily and weekly). The schedules will be managed by an ...
1 vote
1 answer
111 views
Is it appropriate to include a "select all" function in a Class Diagram?
Background Working towards my final project at University, team project and we're stuck with a disagreement on a point in our Class Diagram. We have a class, called "Road". In here with have ...
5 votes
2 answers
2k views
Associations and References in UML Class Diagram
Is it possible to have an association without explicitly indicating the reference attributes in the participating classes in the UML class diagram? For example, consider this example : We can see ...
1 vote
1 answer
374 views
Design User Permissions
I'm building a ToDo list while practicing in different patterns and adding more complexity to the project. The problem which I'm currently facing is to how to apply (and later use, validate and ...
1 vote
1 answer
179 views
Correct way to represent acquaintance enforced by interface in UML class diagram
Suppose I have the following client code: using System; namespace InterfaceCompositionUml { internal class Program { static void Main(string[] args) { ...
1 vote
2 answers
266 views
What if the parent can't exist without a child? (Class diagram)
I've built a matchmaking system where two of the classes look like this: I know that it actually looks like an inheritance, but in the code it doesn't extend to the PlayerInMatchmaking and the ...
1 vote
1 answer
132 views
UML Class Diagram Excersise
Problem statement: The information system of a university must manage information relating to its employees, departments, institutes, courses provided, and research projects. Information relating to ...