F
Fredrik Melin
I have a "Inventory" Object that contains the product and all its fields.
The problem is that I am getting soooooo many functions under main Inventory
class so it becames impossible to initalize a new programmer into this code.
For sample, I have Add_AllowAccess, Add_DisallowAccess, Remove_AllowAccess,
Remove_DisallowAccess, Get_AllowAccess, Get_DisallowAccess (this is only a
sample)
I would really like
Inventory.Access.Allow.Add
Or
Inventory.Access.Add(Enum.Allow...)
(sometimes however one simular function might need diffrent parameters then
the other...)
My questions are
1. Is the best practice to do it the way I described above
(Inventory.Access.Add etc)
2. Add_AllowAccess() needs access to Inventory Object, Should I create
subclasses only containing methods, and use a Parent object that points to
Main Inventory class?
3. Or is there another way to do this all together?
- Fredrik
The problem is that I am getting soooooo many functions under main Inventory
class so it becames impossible to initalize a new programmer into this code.
For sample, I have Add_AllowAccess, Add_DisallowAccess, Remove_AllowAccess,
Remove_DisallowAccess, Get_AllowAccess, Get_DisallowAccess (this is only a
sample)
I would really like
Inventory.Access.Allow.Add
Or
Inventory.Access.Add(Enum.Allow...)
(sometimes however one simular function might need diffrent parameters then
the other...)
My questions are
1. Is the best practice to do it the way I described above
(Inventory.Access.Add etc)
2. Add_AllowAccess() needs access to Inventory Object, Should I create
subclasses only containing methods, and use a Parent object that points to
Main Inventory class?
3. Or is there another way to do this all together?
- Fredrik