In function implementation of interface
===

In Java, if I have an interface, I can do something like this:


    blah.setOnClickListner(new OnClickListner() {
         public void clicked() { // do something }
    }


Can I do something similar in C++?