I am confused about static class and nested class. Is there any difference to code and use of static & nested class?.

Two 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

Two 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

adatapost> Thanks JC. I appreciate your knowledge.

This question has already been answered. Start a new discussion instead.