|
-
March 9th, 2005, 03:07 AM
#4
Re: Has,Contains,Is a part of(UML desingning in C#)
I think - you should not use nested classes for this.
1.) Not all modeling concepts must have its counterpart in programing language.
2.) Nested class breaks encapsulation, because it can access private members of its outer class. In your case: pedals will able to manipulate the whole car, althought they should be able to operate only breaking system.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
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
|