Monday, March 25, 2013

java

instantiating an object of an interface on the fly through anonymous classes : 
  IBlah blah = new IBlah() {      public void doBlah() {          System.out.println("Doing Blah");      }  };

No comments:

Blog Archive