An example class
Name | Type | Description |
---|---|---|
a | the first parameter | |
b | the second parameter |
public constructor(a: string, b: number) { // }
An instance method
Name | Type | Description |
---|---|---|
a | the first parameter | |
b | the second parameter |
Name | Type | Description |
---|---|---|
(Returns) | return value |
private instanceMethod(a: string, b: number): boolean { return false; }
A static method
Name | Type | Description |
---|---|---|
a | the first parameter | |
b | the second parameter |
(Nothing) |
public static staticMethod(a: string, b: number) { // }