Explain inner class in Java with example.
Answers
Answered by
0
Inner class means one class which is a member of another class. There are basically four types of inner classes in java. ... As a side note, we can't have static method in a nested inner class because an inner class is implicitly associated with an object of its outer class so it cannot define any static method for itself.
Similar questions