Hi, more a good practice question, and possibly irrelevent! For examples sake, say I wanted to create a button which you click using OOP/types etc
Say I have defined a type with a list of fields for that button (lets say name,x,y). And say I have created a method CreateButton for that type.
The question I have is this. Is it ok practice to pass the parameters of the button through the createbutton method to initialise it and set the fields for that button, or do people tend to access the fields using the (nameofobject).field way. Or, doesn't it matter!?
I know this is an odd question, jsut want to get into good habits!
cheers
Say I have defined a type with a list of fields for that button (lets say name,x,y). And say I have created a method CreateButton for that type.
The question I have is this. Is it ok practice to pass the parameters of the button through the createbutton method to initialise it and set the fields for that button, or do people tend to access the fields using the (nameofobject).field way. Or, doesn't it matter!?
I know this is an odd question, jsut want to get into good habits!
cheers