Object methods in Gosu
An object property can be any valid data type, including an array, a function, or another object. An object function is generally called a method. Invoking a method on an object is similar to accessing an object property, with the addition of parentheses after the name to denote the function. Gosu uses the dot notation to call a method on a object instance.
Syntax
object.METHOD_NAME()Example
Expression |
Result |
|---|---|
|
|
|
|
See also
