Anonymous Classes cannot have the followings:
Cannot have a constructor or destructor.
Cannot be passed as arguments to functions (unless type checking is defeated using ellipsis).
Cannot be returned as return values from functions.
You can read complete story of Anonymous Classes:
https: