Object Hierarchy: HowTo
From: tinman (dwesar_at_yahoo.com)
Date: 04/05/04
- Next message: simmonsc: "Re: Services and properties"
- Previous message: Dave: "activeX tlb"
- Next in thread: Tom Shelton: "Re: Object Hierarchy: HowTo"
- Reply: Tom Shelton: "Re: Object Hierarchy: HowTo"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 09:25:56 +0700
Hi...
I would like to achive the following object model in VB.NET.....not too sure
how to achieve this but in VB6 I can declare the Project as
PublicNotCreatable
so as to prevent external instancing of the Project class....
Example:
Employee
|
| - - - Projects (this is a collection)
|
| - - - Project
How can I make the Projects and Project object ONLY accessible via the
Employee object ( as in this case the model implies that 1 employee can have
1 or more Projects assigned to him) ?
Appreciate any assistance on this.....
Cheers !
- Next message: simmonsc: "Re: Services and properties"
- Previous message: Dave: "activeX tlb"
- Next in thread: Tom Shelton: "Re: Object Hierarchy: HowTo"
- Reply: Tom Shelton: "Re: Object Hierarchy: HowTo"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|