Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Sergey,
Many Java classes have a .clone()
method for making instance copies that can thereafter be passes in lieu of the original....
**--** Steve
>I don't think you can do that in any OOP language because it would breake object encapsulation. The property doesn't exists by itselff, it belongs to the object. It means you can access it only thru the object. If you could pass property by reference than you would be able to "disconnect" property from the object because you would be able to reference it directly. Can you call it a property after that?
>
>>Sergey,
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement