Objects Initial
This commit is contained in:
parent
00bc875846
commit
939e365a4f
76 changed files with 7895 additions and 17 deletions
15
Objects/rsc/script.osc
Normal file
15
Objects/rsc/script.osc
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
class A {
|
||||
var string = "hello";
|
||||
def log(name) {
|
||||
<< self.string;
|
||||
<< name;
|
||||
}
|
||||
}
|
||||
|
||||
def main() {
|
||||
var a = new A();
|
||||
a.log("user");
|
||||
}
|
||||
|
||||
main();
|
||||
Loading…
Add table
Add a link
Reference in a new issue