|
-
Mar 23rd, 2006, 03:26 PM
#5
Frenzied Member
Re: Anonymous revised
Anonymous classes are allowed. If you think otherwise then you need a java certification book.
Neb, it seems that for an annoymous class to work you cannot have a named variable, so this should work:
new Cell() { public Cell() { this.setColumnSpan(3); }};
So you can't have a name and theirs no way to refer to them. Probably not what you are looking for, but anonymous classes ARE legal.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|