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 15:33, 3 March 2022
, 2 years agoFixed XBS example
Puppydrum64 (talk | contribs) m (added omits) |
m (Fixed XBS example) |
||
Line 1:
<nowiki>Insert non-formatted text here</nowiki>{{task|Object oriented}}
Demonstrate how to dynamically add variables to an object (a class instance) at runtime.
Line 1,926:
=={{header|XBS}}==
<lang xbs>set Object = {}
Object
log(Object.Hello);</lang>
{{out}}
|