This is a bit tricky.
The reason is :
Although protectedVar is inherited by the subclass but the subclass is only allowed to access "it's own" protectedVar. The subclass cannot access super class object's protectedVar. I'm sure this sounds vague but if you read this
6.6.2 Details on protected Access carefully, you'll understand it.
They have also given an example here
6.6.7 Example: protected Fields, Methods, and Constructors
HTH,
Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new
Pattern)
www.enthuware.com/jqplus
[This message has been edited by Paul Anil (edited March 24, 2001).]