- 2
Can someone explain me functions in Kotlin? I did not understand much from the lessons
3 Respuestas
0
Ok so, I need to ask this by "explain me functions", do you mean explain member functions?
Or rather do you mean, explain functions (in general) to me?
0
Because for the simple explain functions in general question I can give you two things this quote, "Functions are the basic building block of any program. In Kotlin functions are declared with the fun keyword and they are first-class citizen. It means that functions can be assigned to the variables, passed as an arguments or returned from another function.", and the website I quoted which has way more info. https://proandroiddev.com/kotlin-functions-are-fun-8fdcd4e85a5
See below for continuation.
0
Continuing, If your wondering about member functions, well then to put it very bluntly, member functions are functions defined within a Kotlin class.