main() is a static method and is part of class. Then how is it that main can access instance members?
cvanithakpm 0 Newbie Poster
poojavb 29 Junior Poster
NormR1 563 Posting Sage Team Colleague
kramerd 29 Posting Pro in Training
NormR1 563 Posting Sage Team Colleague
stultuske 1,116 Posting Maven Featured Poster
richieking 44 Master 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.