Questions tagged [class-relationship]

13 questions
26
votes
2 answers

How to depict "class uses class" relationship via UML

Case A Say you have 2 classes Model and Settings. Settings contains nothing but public static constants used throughout the application. What type of relationship would you say these 2 classes have? Case B Say you have a IntersectionManager…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
3
votes
2 answers

UML Class relationships with respect to current moment or system lifetime

I've a question regarding the following diagram My Qustion is in the relation between driver - Car and Passenger and Cars. 1- The * at driver end means that a car can be driven by many drivers, which is a relationship between the both classes at…
3
votes
3 answers

Employee and EmployeeInfo - C# relationship

I have two classes. Employee (Model) EmployeeInfo (Another Class) //Employee GetEmployeeInfo(int empCode) (MethodName) EmployeeInfo class returns a Employee type. Now, what is the relationship between Employee and EmployeeInfo ? (Aggregation,…
2
votes
1 answer

<> or <> relationship in program code

I can't figure out what a <> or <> relationship looks like in program code? Can someone give me an example? Thanks
Z.J
  • 301
  • 1
  • 7
2
votes
2 answers

C# Cannot access child public method from abstract parent class object

I'm learning OOAD and trying to implement class relationship with inheritance but there is an issue here is the code Parent Class namespace ConsoleApplication1 { abstract class Classification { public abstract string type(); …
zzlalani
  • 22,960
  • 16
  • 44
  • 73
1
vote
3 answers

What would be the class relation?

Among the terms: Motorized Vehicle, Car, Motor, Truck I was thinking the following: a Car is a Motorized Vehicle, a Car has a Motor, a Truck has a Motor, a Truck is a Motorized Vehicle Q1: Am I correct in the above relations? Q2: We now want to…
fifamaniac04
  • 2,343
  • 12
  • 49
  • 72
0
votes
2 answers

UML Relationship between Customer and Product List (Java Supermaket Software)

I am trying to create a supermarket software that allows either a customer or the owner to log-in and use my system via a swing based GUI in Java. When the Customer has logged in they can view products. When the owner has logged in they can view…
0
votes
1 answer

How to improve this class diagram about the components of a bike

So I was given a task of making a class diagram for a bicycle. I know what a class diagram is and the concepts behind one. Now to me, a bike has three major components: the brake system, drive system and steering system. And each system has each own…
Lee Merlas
  • 430
  • 9
  • 24
0
votes
1 answer

Recommendation for a platform to make a web classroom without install a software?

I am making some search to do a web classroom online with : responsive (so without Flash) Without install a software chat LaTex waiting line one student at a time Video conference White board Any idea? Thanks
user2507113
  • 151
  • 1
  • 11
0
votes
2 answers

Rhapsody-UML Class Relations

What is the difference between association and composition relation ship in uml.. For Example.. class Student { Prof p; //other features.. }; class Prof { Student s; //other features.. }; where above code is an example for composition relationship…
Krishna
  • 13
  • 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
1 answer

Where to store class-relationship information?

Assume, we have classes A_1 to A_n and classes B_1 to B_n. Each A_i has relationships (abstract spoken; a relation could be 'A_4 likes B_2') to a set of B_j's and the same the other way round. Question: Where is a good place to store the…
John Threepwood
  • 15,593
  • 27
  • 93
  • 149
0
votes
2 answers

Determine Class Associations using Reflection

I am working on a solution that extracts all the class associations between each other. If we click a class in the object browser we can see the option Find All References. I want something similar that finds the associations a class has to other…
Afnan Bashir
  • 7,319
  • 20
  • 76
  • 138