T
Tim
hi all,
a simple OO related question...
I have some controls. Say, a textbox, a combo and a datepicker.
They all share some properties (tag, size etc).
How should I add another shared property to them all? Eg a property
called "RequiredField" so I can go textbox.requiredfield=true,
combo.requiredfield=false etc etc
I guess I will be using some kind of inheritance. If I was doing just
one type of control it would be easy. I'm after an elegant and proper
way of adding to all types in one go.
Hope this makes some kind of sense!
a simple OO related question...
I have some controls. Say, a textbox, a combo and a datepicker.
They all share some properties (tag, size etc).
How should I add another shared property to them all? Eg a property
called "RequiredField" so I can go textbox.requiredfield=true,
combo.requiredfield=false etc etc
I guess I will be using some kind of inheritance. If I was doing just
one type of control it would be easy. I'm after an elegant and proper
way of adding to all types in one go.
Hope this makes some kind of sense!