How inner classes are helpful..? | SoloLearn: Learn to code for FREE!

+2

How inner classes are helpful..?

Means where we can use these

12/25/2015 1:59:00 PM

Ankush Kumar

4 Answers

New Answer

+5

I can just give this example for inner classes: you can have class Wheel inside class Car and you can also have class Wheel inside class Airplane - 2 different classes with differen characteristics.

+1

Ankush Kumar You can read all about inner class with examples. Inner classes have some rules also please visit here: https://javagoal.com/nested-classes/

0

if we want place two same type or related classes together than inner classes are useful

0

what for?