-
December 21st, 2009, 05:02 PM
#1
Using Static methods ... when to?
Hi, I've been reading up on methods in C# and know about the different kinds. Instantiated can only be called if you create an object of the class, where-as with static methods you don't need to create an object (correct me if I'm wrong here, I'm new to all this)
My question is, why and when would you use one or the other? What advantages are static methods over instance methods (and visa-versa)? Speed? Memory usage? Things you can and can't do with them? In all the tutorials I've read, they explain the differences but not WHY there are differences and their plus/minus points.
Thanks for any pointers.
JB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|