class unparalleled slight -- best approach?
say i have category that's meant perform unparalleled function. after behaving function, destroyed. there any reason move approaches?
// initialize arguments constructor
myclass myobject = new myclass(arg1, arg2, arg3);
myobject.mymethod();
// pass arguments method
myclass myobject = new myclass();
myobject.mymethod(arg1, arg2, arg3);
// pass arguments stationary method
myclass.mymethod(arg1, arg2, arg3);
i being intentionally fake details, try fortify opposite situations. nonetheless i didn't unequivocally have mind rudimentary library functions math.random(). i'm pondering some-more classes perform specific, challenging task, nonetheless wholly need (public) slight it.
Comments
Post a Comment