Top "Inner-classes" questions

In object-oriented programming (OOP), an inner class or nested class is a class declared entirely within the body of another class or interface.

Private inner classes in C# - why aren't they used more often?

I am relatively new to C# and each time I begin to work on a C# project (I only worked …

c# scope inner-classes
local variable is accessed within inner class (java)

I got two errors after I compiled my code. The errors are: 1. local variable input is accessed within inner class; …

java actionlistener inner-classes final
When exactly is it leak safe to use (anonymous) inner classes?

I have been reading some articles on memory leaks in Android and watched this interesting video from Google I/O …

java android memory-leaks inner-classes
When to use inner classes in Java for helper classes

If I have for example a class along with a helper class to do some of its functionality, does it …

java inner-classes
Using Inner classes in C#

What are the best practices regarding the use and structure of inner classes in C#. For instance if I have …

c# inner-classes
access to variable within inner class in java

I'm trying to create an array of JLabels, all of them should go invisible when clicked. The problem comes when …

java variables event-handling inner-classes jlabel
Instantiate private inner class with java reflection

Is it possible to instantiate a private inner class from another class using Java reflection. For example if I took …

java class reflection private inner-classes
Can an outer class access the members of inner class?

The inner class is the class defined inside a class, and the inner class can be declared as public, private, …

java class inner-classes
Why Java inner classes require "final" outer instance variables?

final JTextField jtfContent = new JTextField(); btnOK.addActionListener(new java.awt.event.ActionListener(){ public void actionPerformed(java.awt.event.ActionEvent event){ …

java inner-classes
Why can't I create an enum in an inner class in Java?

What I try to do is this: public class History { public class State { public enum StateType { Eclipse gives me this …

java enums nested inner-classes