Can any one justify the use of inner classes with example(if possible)
painless
0
Newbie Poster
Recommended Answers
Jump to PostTo be visible to just parent class.
namespace Example { class Parent { void Method() { Child c = new Child();//No error } class Child { } } class Painless { void Method() { Child c = new Child();//error } } }
All 3 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
BestJewSinceJC
700
Posting Maven
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.