F
F
foonfyrick2021-06-01 06:16:08
Kotlin
foonfyrick, 2021-06-01 06:16:08

Which variables should start with an underscore?

Sometimes in the code you can see something like _binding, etc. When and for what variables is it customary to put an underscore?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Roo, 2021-06-01
@xez

in java/kotlin this is not accepted.

A
Alexey Dubrovin, 2021-06-01
@alekcena

1 underscore protected
2 underscore private

I
illuzor, 2021-06-01
@iLLuzor

None

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question