This content has been marked as final. Show 5 replies
what other way?
Ok I'll simplify my question:
How do you initialize your class(get him all the needed data?
Maybe via constructor function or what?
Because if I only call the methods, I need to call them in the right order..
With that class I've managed to achieve the goal - I can call them in any order I want.
I think the right way to initialize class is via constructor, and if programmer dont pass the width for example, then the default value is set.
Thanks for the reply.
i use the constructor if i want class instances.
if i have a class that i only use to access a static methods i don't initialize the class, at all. i just use the class methods.
Thanks for the tips.
Have a nice day.