hi here, Could a anonymous inner class have its own constructor ? if yes, could someone give me a sample about this, Some books say Yes,others say No. i am really really confused ... Thanx in advance
Tony, Just think why it is called "anonymous"? It has no name and a constructor must have the same name as its class. So, it is impossible to have a constructor for an anonymous class.
You cannot have constructor for anonymous inner class but if the parent class have constructors,then we can arrange to invoke one of the parent class constructors by passing the appropriate arguments...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.