Anonymous user
Add a variable to a class instance at runtime: Difference between revisions
Add a variable to a class instance at runtime (view source)
Revision as of 22:20, 22 February 2016
, 8 years ago→Example
Line 1,294:
=={{header|Ring}}==
We can add an attribute (or a group of attributes) to the object state using addattribute() function
<lang ring>o1 = new point
addattribute(o1,"x")
|