General information
Category:
Coding, syntax & commands
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,
Previous
Next
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