Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
protected - question/gripe
Message
From
19/07/1999 13:54:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
protected - question/gripe
Miscellaneous
Thread ID:
00243195
Message ID:
00243195
Views:
59
Hi all,

A little philosophical wandering here. I understand the concept of hidden and protected props-methods as far as they are implemented in VFP, but there are a couple things that bother me about it, and I'm looking for a little insight from others.

1) If a property is protected, I STILL think I, as the designer, should be able to set it at the instance level IN THE DESIGN ENVIRONMENT. That is, I want to be able to set the property up to some different default for each instance, but still want it to be 'protected' i.e. other objects can't change it. What am I missing here?

2) Again, with protected, I belive that other objects created at the same class level should be able to access protected properties of an object. For example, if I have a form class - and create some protected property on that class, WHY can't buttons, etc. ALSO added to that class access the property? In my mind - buttons, etc added to a form (or other container class) ought to count as part of that container class as far as protected goes.

TIA,
Ken
Ken B. Matson
GCom2 Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform