Is inner class work as coposition realtionship in java?
The inner class is always inside the outer class and if we remove outer class then inner class would also be destroyed. I don't think about memory release, I am only thinking about the concept.And this is same concept about the composition. Then inner class must be the example of composition relationship of objects  in the real world.

In short I want to relate inner class to the real world Object Orientation.

I think the constructor is the good example of composition then what is the basic need to involve inner class in Object Orientation.

I have idea about inner class but so much ambiguity.


----------
E.g

University is the Outer class.

Faculty is the inner class.


----------

Hey guys I have the seminar on the Object Orientation concept. I need to clarified all the concept. how those are relate to real world. 

So please don't give the ambiguous response. 
Is inner class work as coposition realtionship in java?
===

The inner class is always inside the outer class and if we remove outer class then inner class would also be destroyed. I don't think about memory release, I am only thinking about the concept.And this is same concept about the composition. Then inner class must be the example of composition relationship of objects  in the real world.

In short I want to relate inner class to the real world Object Orientation.

I think the constructor is the good example of composition then what is the basic need to involve inner class in Object Orientation.

I have idea about inner class but so much ambiguity.


----------
E.g

University is the Outer class.

Faculty is the inner class.


----------

Hey guys I have the seminar on the Object Orientation concept. I need to clarified all the concept. how those are relate to real world. 

So please don't give the ambiguous response. 