OtherClass
A different example class for demonstration purposes.
Fields
Field | Type | Description |
---|---|---|
text |
String
|
A field to store text content. |
count |
Number
|
A field to store a numeric count. |
Methods
setText(newText: String)
Set the text content of the class.
Parameters
newText:
String
—
The new text content to set.
incrementCount(value: Number): Number
Increment the stored count by a specified value.
Parameters
value:
Number
—
The value to increment the count by.
Returns
Number —
The updated count after incrementing.