|Syntax Error: unexpected new [message #778772]
||Fri, 13 January 2012 19:58
| Missing name Missing name
Registered: September 2011
Trying to create a new Object within its own class but PDT/Eclipse won't let me: says it's an "unexpected new", as in the "new" keyword for creating a new object( in-fact, I can't even create any object at all). The object is private, static and final. Is that a problem? I'm coming from Java, so it could be I messed up when limiting the property. But when I remove those restrictions, and just create $object = new Object(); I get another error saying it was expecting a function.
Thanks in advance!
[Updated on: Fri, 13 January 2012 20:00]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01635 seconds