Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Acessando objetos
Message
From
19/03/2003 08:40:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00767435
Message ID:
00767483
Views:
7
>Oi Marcus,
>
>Eu costumo fazer como você mencionou no seguindo exemplo. Quanto temos composições, é bom manter o encapsulamento; e criando métodos "acessores" no objeto pai você tem uma única interface para o cliente, aumentando o encapsulamento. Até onde eu entendo, esta seria a configuração ideal do ponto de vista de OOP/OOD.
>
>Um abraço!

Eu acho que accesando as propriedades direitamente, e com métodos access e assign, também se pode enforçar o encapsulamento. Só a sintaxis é diferente! (VFP 6 ou posterior.)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform