Add a variable to a class instance at runtime: Difference between revisions

m
Fixed XBS example
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:.Hello = "World";
log(Object.Hello);</lang>
{{out}}
Anonymous user