Jörn Zaefferer schrieb:
> -------- Original-Nachricht --------
> Datum: Wed, 17 Jan 2007 09:14:28 -0500
> Von: "Dave Methvin" <[EMAIL PROTECTED]>
> An: "\'jQuery Discussion.\'" <[email protected]>
> Betreff: Re: [jQuery] Proper OOP paradigm
> 
>>> var myObject = new femalePatient(37);
>>>
>>> alert(myObject.age); // alerts 42
>> This shows the OOP limitations of Javascript. In a real-world
>> femalePatient
>> object, the age property would be unavailable. ;-)
> 
> Yep. A proper Java class would limit access to a getter method, whichs throws 
> an exception when called...

That reminds me of a funny article I read recently:
http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html

(OT)

-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to