title: How to use inner class in practical
body: <p>Why would someone use an <code>inner class</code>? The same functionality can be achieved with a <code>local class</code> or <code>subclass</code>.</p>
  
  <p>An example would also be appreciated.</p>