Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protected and Hidden
Message
From
04/03/1999 13:01:04
 
 
To
04/03/1999 12:42:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00194090
Message ID:
00194103
Views:
18
Protected property are only visible to the class and all subclass of it.

Hidden property are only visible to the class itself. Not even the subclass cann see them.

Yes, it's a better choice to scope the property to were it's used. If a property will be only used by the class, it should be made protected or hidden to keep the interface simpler and prevent other process to access/modify the property.

> What is the differences betw proteced and hidden property? Should I set all of myproperty which is only used in myclass as proteced or hidden?
Previous
Reply
Map
View

Click here to load this message in the networking platform