on 04-13-2011 8:27 AM
Hi Experts,
I am using an Assistance class in WD Component.
There are several methods in that Assistance class .
Can u plz tell me when we should use static method and when we should use Instance method.
Thanks
Mahesh
Static methods are handy for utility purpose or functional methods. You call the method with our getting the instance of the class.
Assistance class are automatically instantiated by the framework when the component is instantiated. So no advantage of having static method in it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
You can use Instance method in Assistance class.because anyway you no need to instanitate the Assistance class. WDA Framework will be instanitate assitance class automatically. you can call the assistance class method using standard attribute WD_ASSIST.
Thanks and Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.