- 2

Can someone explain me functions in Kotlin? I did not understand much from the lessons

28th Jul 2021, 8:17 PM
SparkyThe Plqayer
3 Answers
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?
29th Jul 2021, 5:02 AM
noah hulvey
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.
29th Jul 2021, 5:08 AM
noah hulvey
0
Continuing, If your wondering about member functions, well then to put it very bluntly, member functions are functions defined within a Kotlin class.
29th Jul 2021, 5:14 AM
noah hulvey