Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Acessando objetos
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00767435
Message ID:
00767549
Vues:
8
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform