Monday, March 8, 2010

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

0 comments

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

Example

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