|
@ -21,7 +21,7 @@ |
|
|
print("\n"); |
|
|
print("\n"); |
|
|
|
|
|
|
|
|
// Use of the P class |
|
|
// Use of the P class |
|
|
x = new(P, {x: 2, y: 4, z: 6 }); |
|
|
|
|
|
|
|
|
x = new(P, {x: 2, y: 4, z: 6 class="p">, w: 9}); |
|
|
x.functions.printf(x); |
|
|
x.functions.printf(x); |
|
|
|
|
|
|
|
|
// Create another class from P |
|
|
// Create another class from P |
|
@ -36,7 +36,7 @@ |
|
|
|
|
|
|
|
|
// Use of the Q class |
|
|
// Use of the Q class |
|
|
y = new(Q, {x: 1, y: 2, z: 3, q: 42 }); |
|
|
y = new(Q, {x: 1, y: 2, z: 3, q: 42 }); |
|
|
P.functions.printf(P); |
|
|
|
|
|
|
|
|
y.functions.printf(y); |
|
|
|
|
|
|
|
|
nil; |
|
|
nil; |
|
|
} |
|
|
} |