Method
A function that has been bound to a class instance. Example:
Calling a function:
myFunction() // function
Calling a method:
class MyClass {
fun myFunction() {}
}
instance = new MyClass()
instance.myFunction()
A function that has been bound to a class instance. Example:
Calling a function:
myFunction() // function
Calling a method:
class MyClass {
fun myFunction() {}
}
instance = new MyClass()
instance.myFunction()