So far so good but if the inner class has the same method this will be called instead. To avoid this ambiguity one can call the method in a more specific way. To be able to call the method of the outer class the prefix Dummy1.this can be added.