- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
class XFoo {
pin: number;
buf: number[];
constructor(k: number, l: number) {
this.pin = k - l;
}
setPin(p: number) {
this.pin = p;
}
getPin() {
return this.pin;
}
init() {
this.buf = [1, 2];
}
toString() {
return `Foo${this.getPin()}`;
}
}
function main() {
let f = new XFoo(44, 2);
let s = "" + f;
print(s);
}
ASD_77 19.07.2021 20:56 # 0
guest6 19.07.2021 20:58 # 0
ASD_77 19.07.2021 20:59 # +1
bagrinho 19.07.2021 21:01 # 0
ASD_77 19.07.2021 21:17 # +1
ASD_77 19.07.2021 20:58 # 0
ASD_77 19.07.2021 21:24 # 0
JloJle4Ka 20.07.2021 02:29 # 0
ASD_77 20.07.2021 11:59 # 0