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

Refactor Reference/Association to Inheritance

How to refactor/rewrite an association into inheritance in the following example. The UML Diagram describes the currently working state of my program. The real code structure is more complex so please excuse this made-up example. There is a Market…
-1
votes
1 answer

solid line arrow vs dotted line arrow in class hierarchy diagram

I'm currently learning java collection. I have been shown a class hierarchy diagram of Set interface and its sub-interfaces and concrete implementation classes. No explanation was provided for the meaning of solid line arrow and dotted line arrow.…
Thor
  • 9,638
  • 15
  • 62
  • 137
-1
votes
1 answer

Difference between associative entities and a entity that is dependent on all of its foreign keys?

I was interested in storing the history of properties which contains two entites - properties and owners. Right now I am not sure what approach to take and needed some help. I was thinking of creating an associative entity and so this would have its…
MAD_DOG
  • 13
  • 3
-1
votes
1 answer

How to decide which design pattern best for the concept

How to decide which design pattern best for the concept. Ex. Metro railway , ticket reservation,
user3032819
  • 595
  • 1
  • 5
  • 6
-1
votes
1 answer

How to convert natural language to OCL constraint?

I have a class diagram which consist a class on the name of SYSTEM. I have written a constraint for availability of this system. For example : The system should be available 24/7. Now I want to convert the above statement into OCL constraint. I am…
discky
  • 7
  • 3
-1
votes
1 answer

Strategy Pattern Java

I have a question regarding strategy pattern in java. In the first diagram we can see definition of the Strategy pattern. Context is composed of a Strategy interface, The context could be anything that would require changing behaviors - a class…
EliiTryToLearn
  • 125
  • 1
  • 11
-1
votes
1 answer

What design pattern/architectural pattern does this represent?

I have created a Connect 4 game for my final year project which has both multiplayer and singleplayer. It uses Monte-Carlo Tree Search to play against the computer. I am doing a report based on this and would like to know what design…
-1
votes
1 answer

How does my Golf Club UML Class Diagram look?

I'm prepping for an interview in which I need to model a real life scenario in UML. I'm trying to get some practice in. I've created the following diagram of a Golf Club and I'm wondering if you I could get some feedback on any major flaws. Any…
Malorrr
  • 11
  • 1
  • 6
-1
votes
1 answer

Find classes which doesn't reference any other custom classes

I have a java package which has around 400 classes. I want to find base classes. Base classes are those which does not have any reference to any other class( in the same big package) Is there anyway?
user3301010
  • 11
  • 1
  • 5
-1
votes
1 answer

In which class should I put operations in UML

I am working on a class diagram for a forum and I got some questions about classes' operations. In fact I don't know where should i put the operations In my diagram a "pseudo" can create a topic. In my first solution. I put the operation…
aldo
  • 11
-1
votes
1 answer

Class diagram - Android app for dog owners

I am struggling how to model the class diagram. I am confused with bindings. Users can create a new dog. When the user is removed also reminders, dogs should be deleted. Isnt it composition? Memories are related to dogs, they should be deleted when…
user3637775
  • 499
  • 4
  • 20
-1
votes
1 answer

What is the best way for me to start this UML diagram?

My mind is all over the place and I am not sure how to go about starting this UML diagram. This is the problem: The library consists of a lot of publications in several types of media – books, periodicals (also called magazines), newspapers, audio,…
pete
  • 11
  • 1
-1
votes
1 answer

Uml Class Diagram Construction

Having a bit of trouble coming with a class diagram using the following information: A services company provides its customers with services. Customers can be of two types : Residential of Corporate Residential customers can buy only residential…
Abdalla Ismail
  • 409
  • 1
  • 4
  • 21
-1
votes
1 answer

Use annotation in springMVC class diagram

I am designing a class diagram for Java Spring MVC web application. I didnt find any material to use annotations like @Controller, @Service, @Autowired like these in class diagram. Without this my class diagram generates very plain java code…
Monicka Akilan
  • 1,501
  • 5
  • 19
  • 42
-1
votes
2 answers

Creating UML Class Diagram for password check

I am trying to create UML Class Diagram for this problem: So, user is prompted to enter a password. It's a 9 digit number. System receives passwords and checks if it's correct or not by looking into database which has correct password stored inside.…
Tim Denali
  • 45
  • 3
1 2 3
99
100