Linked Questions

Popular Questions

btn.setOnClickListener() how does it calls

Asked by At

I am beginner in programing, and I know how btn.setOnClickListener{} function works (curly brackets). But there is other tipe of function btn.setOnClickListener() - brackets are not curly. I do not know how and when I should use this tipe of functions. How does such type of function calls? I would like to learn more about it but I do not know how to google it Answer: "If a function has only one parameter, and this is a function, the parentheses can be deleted"

Related Questions