Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Acessando objetos
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00767435
Message ID:
00767549
Views:
9
This message has been marked as the solution to the initial question of the thread.
Oi Marcus,

Novamente, voto na segunda opçõa :)

Olha só: se vc passar o nome dos objetos como parâmetros, estará de certa forma quebrando o encapsulamento novamente...

Passar um ID ou mesmo permitir um acesso via coleções, onde o usuário do objeto não tenha que referenciar os objetos filho/netos por nome, me parece melhor. Algo do tipo:
loObjetoPai.Items(1).Atributo = "Valor"
Esta abordagem é largamente utilizada por bibliotecas como ADO e MSXML...

Um abraço!
-----
Fabio Vazquez
http://www.fabiovazquez.com
Previous
Reply
Map
View

Click here to load this message in the networking platform