Monday, March 8, 2010

what is inner class & when we should go for inner classes  


Some times we can declare a class inside another class such type of classes are called inner classes


Class Car{

//more code here

Class Engine{

//more code here



Without existing Car object there is no chance of existing Engine object, hence Engine class has declared inside Car class.

What next?

You can also bookmark this post using your favorite bookmarking service:

Related Posts by Categories

Extension Factory Builder