General information
Category:
Object Oriented Programming
From your explanation it looks like the encapsulation keywords would have different meanings for read/write access, while it is not the case.
Vlad
>Hi John ---
>
>Public --- Can be modified in the class and the instance, accessed from anywhere.
>Protected --- Can be modified in the class and instance, but only accessed from the class or a subclass or the instance.
>Hidden --- Can only be modified in the class and only accessed by other members of the class.
>
>
>>Hi,
>> I have a timer class that being added into a form. There are several property (.sec,.mins,.hours) set as protected. These properties will be in method display (set as public).
>> I fail to retrieve these property from display method. It only works fine if i reset all of these properties to public.
>> Does protected property only can be access in class designer and could not be even in the same class within a form?
>> How about Hidden property, any differences?
>>
>>Thank you
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only