Where did you get that from? It is full of all sorts of stylistic unconventialities. If you are copying from books or website, please Quote Your Sources.
You need to have a class js with a no-arguments constructor, and a class Fa, then it is actually very similar to this thread. It is an anonymous subclass of Fa with a make() method.
Shall we get back to the official subject of this thread?
jacob deiter
Ranch Hand
Joined: Apr 02, 2008
Posts: 576
posted
0
Dear all
I do not want to know whether it will complie or not.It is part of successful code,I just want explanation,you all think that it is a pseudo code. [ October 13, 2008: Message edited by: jacob deiter ]
Bill Shirley
Ranch Hand
Joined: Nov 08, 2007
Posts: 457
posted
0
The answer has been given.
It is creating in instance of a subclass of Fa that is anonymous (it has no name). The subclass contains one method that has been customized.
Standard:
Anonymous Subclass:
you normally don't see this in hand-coded Java, but you often see it in machine-generated Java code, [ October 13, 2008: Message edited by: Bill Shirley ]
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Originally posted by Campbell Ritchie: Can I choose who it is? As long as it isn't Rob.
If the question was about who was going to kick you, you'd beg for me to do it. I still have just a little power in my kicking leg
Originally posted by Bill Shirley: you normally don't see this in hand-coded Java,
Then you haven't seen my code. Especially in user interface programming I do it all the time:
And yes, I code 90% of my code by hand. The only code I let Eclipse generate for me is getters and setters, and even those I tweak to get at least the Javadocs correct. "Sets the myField"... ARGH!