473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Implementing association class

Hi,

I'm a newbie in c# and have a simple question.
How does you have to implement an association class (uml) in c#?

Thanks in advance

Frederik
Feb 25 '06 #1
1 8753
"Frederik Vanderhaegen" <fr*******************@pandora.be> a écrit dans le
message de news: OZ**************@TK2MSFTNGP11.phx.gbl...

| I'm a newbie in c# and have a simple question.
| How does you have to implement an association class (uml) in c#?

Very simple example :

public class Member: System.Object
{
}

public class Meeting: System.Object
{
}

public class Attendance // association class
{
private Meeting meeting;
private Member member;
...
}

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Feb 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: roadster | last post by:
Hi, I'm new to C++ and I don't know how I can implement an association between two objects. e.g. we have objects A and B. B has the following interface-function : GetInfo() From within a...
2
by: David | last post by:
Hi, I am trying to create a two way association between 2 objects. I intended to do it by having a pointer to each other but I am getting compilation errors. At the moment I can create both...
1
by: JerryP | last post by:
Hi Experts, from my program I offer the user to launch different files from a directory (normaly in this directory are .txt files) - but sometimes other files may be in there - so if my program...
3
by: Bret Pehrson | last post by:
I'm working on a (non-trivial) project which includes various & numerous objects, some in my direct source control, some not. I'm finding the need to somehow associate one object with another,...
4
by: phl | last post by:
hi, My question is: 1. To avoid possible memory leaks, when you use this pattern, after you have dealth with the unmanaged resources and before you take your object off the finalize queue,...
7
by: =?Utf-8?B?T3N3YWxkZmln?= | last post by:
Hi there, I'm a newbie in C# and i am looking for a simple yet clearly code example of an association between two classes (a multiciplity association for example) to help me understand a bit...
5
by: =?Utf-8?B?RG91Z0U=?= | last post by:
I am at my wits end. VB .net is supposed to be an object oriented language. But I have tried hack after hack, and I can not get past either "Reference to a non-shared member requires an object...
4
by: =?Utf-8?B?UGFvbG8=?= | last post by:
I have 3 classes - their associations are modelled in UML thus: Class A: 1 --1..* Class B: 1 --1..* Class C How would I implement this in C#? Thanks
0
by: Ole | last post by:
In a class diagram it is possible to view a field as an association making it visible (with an arrow) that a class uses another class but what if I would like to make it visble that a class uses...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.