sapainca
asked on
Efficiency of static versus instance methods
I have a general question as to the efficiency of static versus instance methods: could an increase in efficiency/speed be realized by declaring a method static or not. Specifically, if it's more convenient to use an instance method, but I could concievably re-write it as a static method, would there be a gain? My problem results from not being able to declare static methods in an interface -- and so I am using instnace methods. But if I can write a method as static, should I? For full points, please offer some why/how as to the reason there is or is not a price to pay for a method being static or not.
Thanks.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.