I’m confused with designing a client software with database integration to what should be a member variable of the class or just a query to the database. Let me be specific with a trivial example: If I have, lets say, a Student class, which has a list of “friends” that are Student objects. Should my software design have an ArrayList<Student>
Tag: uml
How to write constructor where the types are from another class in Java?
I’m doing a UML diagram for a Connect four game. It is a two-player connection board game, in which the players choose a color and then take turns dropping colored discs into a seven-column, six-row vertically suspended grid. I have a problem with the UML Diagram. The class game has 2 variables that came from another class(is this ok?). And
How to represent bi-directional associations in UML?
After reading the question “In UML class diagram can composition be bidirectional?”, I’m wondering how concrete examples of bi-directional shared/composite aggregation will look on a UML diagram. Specifically, I’m interested how arrow-heads and multiplicity are used to distinguish between the following cases: 1) Uni-directional shared aggregation (aggregation) 2) Bi-directional shared aggregation (aggregation) 3) Uni-directional composite aggregation (composition) 4) Bi-directional composite
How do I define a field in a subclass by strictly following a given UML?
I’m trying to implement the UML diagram below using java: I only got recently exposed to UMLs and according to my understanding, I cannot set a field inside SBank or PBank to define their rate of interest. It can also be seen that in the class Bank there is no implementation for defining the rate of interest like using a
I am getting a syntex error when making a UML class in IntelliJ, how can i fix it?
I am making a UML class diagram in IntelliJ with the “Sketch it!” plugin, but it says there is a syntax error in line 5, where it says namespace the first time. I don’t get why, as it says the same on many times below as well without an error. I can’t find a tutorial to this program online, so
How to present abstract class which has relationship with interface class in class diagram
I have to do diagram with minimum of one abstract class and interface.I though to be a good idea to implement the interface class here. My table is customer which is the abstract class.The interface …
is there a preferable relationship between classes? Why? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question is there really a preferable relationship between classes ? or it depends on the software we have ? I know
Do we need to add interface Runnable in our UML class diagram? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago. Improve this question I have created a simple FlappyBird clone game with socket programming and now I am doing the UML diagram. My classes
Instant reverse dependencies between classes in visual paradigm
I would like to reverse dependencies between my java classes using visual paradigm. Is there any way to do it ? Or any other UML modeling tool that could achieve that ? Answer First you do not want to ‘reverse’ the dependencies from sources but to have them produced in addition during/after the reverse, I mean a dependency is not
Using Inheritance like this is right?
I’m student learning Inheritance in Java. I’m making a program (Bitcoin Mining Game). In the program, there are different kind of digger (Mining Machine): ordinary digger (this only does digging coin), overclock digger (this can dig and can overclock to dig faster) and durability recover digger (this can dig, overclock and recover durability (every digger has durability, durability drops while