I am confused about static class and nested class. Is there any difference to code and use of static & nested class?.
kvprajapati 1,826 Posting Genius Team Colleague
Recommended Answers
Jump to PostTwo is not static, so it needs an instance of One to be created in. ie
One.Two p=new One() . new Two();
Alternatively, declare Two as static
Jump to PostMy pleasure. J
All 5 Replies
verruckt24 438 Posting Shark
kvprajapati 1,826 Posting Genius Team Colleague
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
kvprajapati 1,826 Posting Genius Team Colleague
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured 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.