Hey All,
I am very interested to start using the Prototype library to write OO Code in the hope to eventually switch from my usual procedural style when doing medium to large projects.
I have just read the section on using Classes on the prototype website, and Im impressed with what Ive read. The only thing is Im wondering how would I handle a situation such as 'invalid' variables being passed to a constructor?
Say I wrote an app which required a variable with the value of 100 or 200, and failing that condition the program must fall over and inform the user why?
I hope that made sense! thanks.
Matt



Reply With Quote



Im used to inheritence in Java and I liked how easy it was (similar to Java) with the prototype Library.

Bookmarks