You can also use the object
keyword to create an instance of some interface or
abstract class, where you provide the implementations of the abstract functions
that are needed. This is akin to Java's "anonymous inner class" feature, and it
is useful for cases where you do not need to create lots of instances of
the class.
You can learn more about this in:
Tags: