|
-
March 8th, 2005, 09:58 AM
#1
Has,Contains,Is a part of(UML desingning in C#)
Hi Experts,
I want to implement HAS in C#,I think I should use private nested class for this relation,or whetere other things are possible?
for example a car Has door,motor,pedal,...
Code:
public class car
{
private Motor motor=null;
class Motor{
}
private Pedal pedal=null;
class Pedal{
}
private Door door=null;
class Door{
}
}
am I right?
if I declare Door,Pedal,Motor classes outside the car class,does it make sence?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|