What is the difference? Is one better than the other? How do you choose between the two?
Why does one not need to instantiate when calling a static method?
sam63
0
Newbie Poster
Recommended Answers
Jump to PostWell I can't conclusively say that one is better, because they serve different purposes.
Are you familiar with OOP? In OOP, static objects or members of a class that can be accessed directly from the class, while non-static members can only be accessed from the instance it belongs to.
…
Jump to Postnope, as far as I know
All 11 Replies
scru
909
Posting Virtuoso
Featured Poster
sam63
0
Newbie Poster
scru
909
Posting Virtuoso
Featured Poster
chakrimsis
0
Newbie Poster
sathish@daniweb
0
Newbie Poster
Diamonddrake
397
Master Poster
sathish@daniweb
0
Newbie Poster
DdoubleD
315
Posting Shark

sgavriel
kvprajapati
1,826
Posting Genius
Team Colleague
MuhammadSaad
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.