[RESOLVED][02/03] Object Oriented Structure sample
Does anyone can give example regarding ParentChild OO ?
ex: Manajer have direct employee like Supervisor, Supervisor have direct employee like Staff
so i can set the something like this Manajer.Employee.Add(New Supervisor)
Supervisor.Employee.Add(New Staff)..
but i just don't know about its Class structure ..
pls give some insight
thx..
Re: [02/03] Object Oriented Structure sample
perhaps like Collection of Class so i can use something like this
for each Staff in Supervisor.Employees
'do some stuff here
next
or
for each Role in User.Roles
'do some stuff here
next
i've been doing it using VB6 but i just don't how to do it in .NET
1 Attachment(s)
Re: [02/03] Object Oriented Structure sample
there is a way same like in VB 6 i think
my scenario is something like this one product can have many child product where child product can also have many product
A
A1
BB1
B2
and so on
i have two class for Products and ProductCollections
basically ProductCollection is holding Product where Product can have ProductCollections too (confuse? )
i'm attaching the example for it..
HTH
thanks,
erick