Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. public class MainClass
  2. {
  3.     public static void main(String[] args) {
  4.         OuterClass outerObject = new OuterClass();
  5.         OuterClass.InnerClass innerObject = outerObject.new InnerClass();
  6.        
  7.         outerObject.stampaMessaggio();
  8.         innerObject.stampa();
  9.        
  10.         //si possono istanziare le altri classi che abbiamo creato? Quali si possono istanziare e quali no? E come?
  11.     }
  12. }