Quantcast
Channel: BlogoSfera » DATA
Viewing all articles
Browse latest Browse all 64

Can I make an instance of inner static class?

$
0
0

If I use the code 1 Utility.DetailsInfo myInfo=new Utility.DetailsInfo() causes an error, why? No enclosing instance of type Utility is accessible. Must qualify the allocation with an enclosing instance of type Utility(e.g. x.new A() where x is an instance of Utility). So I have to use the Code 2 Can I make an instance of [...]

The post Can I make an instance of inner static class? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 64

Trending Articles