-------- 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...
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

Reply via email to